Bug 1446222 - Move WebGL primitives to Canvas actor dir. r=jdescottes draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Thu, 15 Mar 2018 19:20:32 -0500
changeset 770069 285116af6eb023412080893a8f34d6d00cfdda8a
parent 769888 827c686c570935483c3ad8022aa92b9e005574c3
child 770070 a4146f1879ad8603417d40f6bacae49c9dc46e66
push id103309
push userbmo:jryans@gmail.com
push dateTue, 20 Mar 2018 17:54:32 +0000
reviewersjdescottes
bugs1446222
milestone61.0a1
Bug 1446222 - Move WebGL primitives to Canvas actor dir. r=jdescottes MozReview-Commit-ID: 8Zv7cJFFG88
devtools/server/actors/canvas.js
devtools/server/actors/canvas/moz.build
devtools/server/actors/canvas/primitive.js
devtools/server/actors/moz.build
devtools/server/moz.build
devtools/server/primitive.js
--- a/devtools/server/actors/canvas.js
+++ b/devtools/server/actors/canvas.js
@@ -4,17 +4,17 @@
 "use strict";
 
 /* global XPCNativeWrapper */
 
 const defer = require("devtools/shared/defer");
 const protocol = require("devtools/shared/protocol");
 const {CallWatcherActor} = require("devtools/server/actors/call-watcher");
 const {CallWatcherFront} = require("devtools/shared/fronts/call-watcher");
-const {WebGLPrimitiveCounter} = require("devtools/server/primitive");
+const {WebGLPrimitiveCounter} = require("devtools/server/actors/canvas/primitive");
 const {
   frameSnapshotSpec,
   canvasSpec,
   CANVAS_CONTEXTS,
   ANIMATION_GENERATORS,
   LOOP_GENERATORS
 } = require("devtools/shared/specs/canvas");
 const {CanvasFront} = require("devtools/shared/fronts/canvas");
new file mode 100644
--- /dev/null
+++ b/devtools/server/actors/canvas/moz.build
@@ -0,0 +1,9 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+DevToolsModules(
+    'primitive.js',
+)
rename from devtools/server/primitive.js
rename to devtools/server/actors/canvas/primitive.js
--- a/devtools/server/actors/moz.build
+++ b/devtools/server/actors/moz.build
@@ -1,15 +1,16 @@
 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 DIRS += [
+    'canvas',
     'emulation',
     'highlighters',
     'inspector',
     'utils',
     'webconsole',
 ]
 
 DevToolsModules(
--- a/devtools/server/moz.build
+++ b/devtools/server/moz.build
@@ -17,16 +17,15 @@ XPCSHELL_TESTS_MANIFESTS += ['tests/unit
 
 DevToolsModules(
     'child.js',
     'content-process-debugger-server.js',
     'content-server.jsm',
     'css-logic.js',
     'event-parsers.js',
     'main.js',
-    'primitive.js',
     'service-worker-child.js',
     'websocket-server.js',
     'worker.js'
 )
 
 with Files('**'):
     BUG_COMPONENT = ('Firefox', 'Developer Tools')