Bug 1342237 - remove Shader Editor Actor and Front; r=vporof

Depends on D14732

Differential Revision: https://phabricator.services.mozilla.com/D14734

--HG--
extra : moz-landing-system : lando
This commit is contained in:
yulia 2019-03-13 16:47:48 +00:00
Родитель 8c86559f59
Коммит 12c5ac3425
8 изменённых файлов: 0 добавлений и 1504 удалений

Просмотреть файл

@ -62,7 +62,6 @@ DevToolsModules(
'webaudio.js',
'webbrowser.js',
'webconsole.js',
'webgl.js',
)
with Files('animation.js'):
@ -97,6 +96,3 @@ with Files('webaudio.js'):
with Files('webconsole.js'):
BUG_COMPONENT = ('DevTools', 'Console')
with Files('webgl.js'):
BUG_COMPONENT = ('DevTools', 'WebGL Shader Editor')

Просмотреть файл

@ -163,11 +163,6 @@ const ActorRegistry = {
constructor: "InspectorActor",
type: { target: true },
});
this.registerModule("devtools/server/actors/webgl", {
prefix: "webgl",
constructor: "WebGLActor",
type: { target: true },
});
this.registerModule("devtools/server/actors/webaudio", {
prefix: "webaudio",
constructor: "WebAudioActor",

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -41,5 +41,4 @@ DevToolsModules(
'stylesheets.js',
'webaudio.js',
'webconsole.js',
'webgl.js'
)

Просмотреть файл

@ -1,44 +0,0 @@
/* 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/. */
"use strict";
const {
shaderSpec,
programSpec,
webGLSpec,
} = require("devtools/shared/specs/webgl");
const { FrontClassWithSpec, registerFront } = require("devtools/shared/protocol");
/**
* The corresponding Front object for the ShaderActor.
*/
class ShaderFront extends FrontClassWithSpec(shaderSpec) {
}
exports.ShaderFront = ShaderFront;
registerFront(ShaderFront);
/**
* The corresponding Front object for the ProgramActor.
*/
class ProgramFront extends FrontClassWithSpec(programSpec) {
}
exports.ProgramFront = ProgramFront;
registerFront(ProgramFront);
/**
* The corresponding Front object for the WebGLActor.
*/
class WebGLFront extends FrontClassWithSpec(webGLSpec) {
constructor(client) {
super(client);
// Attribute name from which to retrieve the actorID out of the target actor's form
this.formAttributeName = "webglActor";
}
}
exports.WebGLFront = WebGLFront;
registerFront(WebGLFront);

Просмотреть файл

@ -273,11 +273,6 @@ const Types = exports.__TypesForTests = [
spec: "devtools/shared/specs/webconsole",
front: "devtools/shared/fronts/webconsole",
},
{
types: ["gl-shader", "gl-program", "webgl"],
spec: "devtools/shared/specs/webgl",
front: "devtools/shared/fronts/webgl",
},
{
types: ["pushSubscription"],
spec: "devtools/shared/specs/worker/push-subscription",

Просмотреть файл

@ -53,5 +53,4 @@ DevToolsModules(
'timeline.js',
'webaudio.js',
'webconsole.js',
'webgl.js',
)

Просмотреть файл

@ -1,101 +0,0 @@
/* 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/. */
"use strict";
const {Arg, Option, RetVal, generateActorSpec} = require("devtools/shared/protocol");
const shaderSpec = generateActorSpec({
typeName: "gl-shader",
methods: {
getText: {
response: { text: RetVal("string") },
},
compile: {
request: { text: Arg(0, "string") },
response: { error: RetVal("nullable:json") },
},
},
});
exports.shaderSpec = shaderSpec;
const programSpec = generateActorSpec({
typeName: "gl-program",
methods: {
getVertexShader: {
response: { shader: RetVal("gl-shader") },
},
getFragmentShader: {
response: { shader: RetVal("gl-shader") },
},
highlight: {
request: { tint: Arg(0, "array:number") },
oneway: true,
},
unhighlight: {
oneway: true,
},
blackbox: {
oneway: true,
},
unblackbox: {
oneway: true,
},
},
});
exports.programSpec = programSpec;
const webGLSpec = generateActorSpec({
typeName: "webgl",
/**
* Events emitted by this actor. The "program-linked" event is fired every
* time a WebGL program was linked with its respective two shaders.
*/
events: {
"program-linked": {
type: "programLinked",
program: Arg(0, "gl-program"),
},
"global-destroyed": {
type: "globalDestroyed",
program: Arg(0, "number"),
},
"global-created": {
type: "globalCreated",
program: Arg(0, "number"),
},
},
methods: {
setup: {
request: { reload: Option(0, "boolean") },
oneway: true,
},
finalize: {
oneway: true,
},
getPrograms: {
response: { programs: RetVal("array:gl-program") },
},
waitForFrame: {
response: { success: RetVal("nullable:json") },
},
getPixel: {
request: {
selector: Option(0, "string"),
position: Option(0, "json"),
},
response: { pixels: RetVal("json") },
},
_getAllPrograms: {
response: { programs: RetVal("array:gl-program") },
},
},
});
exports.webGLSpec = webGLSpec;