Bug 94933 - Web Inspector: [WebGL] Implement serializing WebGL state and replaying it later
Summary: Web Inspector: [WebGL] Implement serializing WebGL state and replaying it later
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Andrey Adaikin
URL:
Keywords:
Depends on:
Blocks: 94941
  Show dependency treegraph
 
Reported: 2012-08-24 06:46 PDT by Andrey Adaikin
Modified: 2012-08-27 05:28 PDT (History)
11 users (show)

See Also:


Attachments
Patch (27.08 KB, patch)
2012-08-24 07:12 PDT, Andrey Adaikin
pfeldman: review+
Details | Formatted Diff | Diff
Patch to land (32.04 KB, patch)
2012-08-24 08:47 PDT, Andrey Adaikin
no flags Details | Formatted Diff | Diff
Patch to land (32.06 KB, patch)
2012-08-24 08:57 PDT, Andrey Adaikin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Adaikin 2012-08-24 06:46:33 PDT
Patch to follow.
Comment 1 Andrey Adaikin 2012-08-24 07:12:59 PDT
Created attachment 160417 [details]
Patch
Comment 2 Pavel Feldman 2012-08-24 08:15:13 PDT
Comment on attachment 160417 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=160417&action=review

> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:257
> +        var thisObject = /** @type {ReplayableResource} */ (Resource.toReplayable(this._thisObject, cache));

No need for ( ) in case of assignment cast.

> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:678
> +    /** @inheritDoc */

We don't use @inheritDoc

> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:782
> +            switch (uniform.type) {

You could use a map here.

> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:783
> +                case gl.FLOAT:

Do not indent case

> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:979
> +    "ACTIVE_TEXTURE",

We need to add a test so that we could track changes to this set.
Comment 3 Andrey Adaikin 2012-08-24 08:45:55 PDT
Comment on attachment 160417 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=160417&action=review

>> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:257
>> +        var thisObject = /** @type {ReplayableResource} */ (Resource.toReplayable(this._thisObject, cache));
> 
> No need for ( ) in case of assignment cast.

you're right. done.

>> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:678
>> +    /** @inheritDoc */
> 
> We don't use @inheritDoc

done.

>> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:782
>> +            switch (uniform.type) {
> 
> You could use a map here.

done.

>> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:783
>> +                case gl.FLOAT:
> 
> Do not indent case

done.

>> Source/WebCore/inspector/InjectedScriptWebGLModuleSource.js:979
>> +    "ACTIVE_TEXTURE",
> 
> We need to add a test so that we could track changes to this set.

Filed https://bugs.webkit.org/show_bug.cgi?id=94941
Comment 4 Andrey Adaikin 2012-08-24 08:47:18 PDT
Created attachment 160427 [details]
Patch to land
Comment 5 Andrey Adaikin 2012-08-24 08:57:22 PDT
Created attachment 160430 [details]
Patch to land
Comment 6 Andrey Kosyakov 2012-08-27 04:38:38 PDT
Committed r126747: <http://trac.webkit.org/changeset/126747>