Bug 146526

Summary: Disable experimental WebGL2 implementation
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mmaxfield: review+

Description Dean Jackson 2015-07-01 15:13:49 PDT
Disable WebGL2
Comment 1 Dean Jackson 2015-07-01 15:14:45 PDT
Our experimental implementation is not ready to be exposed.
Comment 2 Radar WebKit Bug Importer 2015-07-01 15:15:34 PDT
<rdar://problem/21641229>
Comment 3 Radar WebKit Bug Importer 2015-07-01 15:15:37 PDT
<rdar://problem/21641235>
Comment 4 Dean Jackson 2015-07-01 15:19:42 PDT
Not sure why we got two radars. Which one updates?
Comment 5 Dean Jackson 2015-07-01 15:26:19 PDT
Created attachment 255957 [details]
Patch
Comment 6 Myles C. Maxfield 2015-07-01 15:31:56 PDT
Comment on attachment 255957 [details]
Patch

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

> Source/WTF/wtf/FeatureDefines.h:766
> +#if !defined(ENABLE_WEBGL2)
> +#define ENABLE_WEBGL2 0
> +#endif

Why is this necessary? Weinig says we should be trying to pare down this file, not add to it.

> Source/WebCore/bindings/js/JSCanvasRenderingContextCustom.cpp:42
> +#if ENABLE(WEBGL2)
> +#include "JSWebGL2RenderingContext.h"
> +#endif

Don't we usually have a pattern to put these ENABLE() guards inside the header files themselves?
Comment 7 Myles C. Maxfield 2015-07-01 15:32:04 PDT
rs=me
Comment 8 Dean Jackson 2015-07-01 15:37:27 PDT
Comment on attachment 255957 [details]
Patch

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

>> Source/WTF/wtf/FeatureDefines.h:766
>> +#endif
> 
> Why is this necessary? Weinig says we should be trying to pare down this file, not add to it.

I agree! I was the one who proposed removing this file :)

But until there is a plan, I would like to keep consistent.

>> Source/WebCore/bindings/js/JSCanvasRenderingContextCustom.cpp:42
>> +#endif
> 
> Don't we usually have a pattern to put these ENABLE() guards inside the header files themselves?

Good catch. It's actually automatically in that file thanks to the Condition guard.
Comment 9 Dean Jackson 2015-07-01 15:40:03 PDT
Committed r186198: <http://trac.webkit.org/changeset/186198>
Comment 10 Chris Dumez 2015-07-01 17:32:37 PDT
Look like this needs rebaselining:
js/dom/global-constructors-attributes.html
Comment 11 Chris Dumez 2015-07-01 17:42:04 PDT
(In reply to comment #10)
> Look like this needs rebaselining:
> js/dom/global-constructors-attributes.html

<http://trac.webkit.org/changeset/186211>