Bug 141446 - WebGL2: Make sure various WebGL1 extensions promoted to core on now enabled by default.
Summary: WebGL2: Make sure various WebGL1 extensions promoted to core on now enabled b...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 15:05 PST by Roger Fong
Modified: 2015-02-18 12:49 PST (History)
4 users (show)

See Also:


Attachments
patch (66.08 KB, patch)
2015-02-10 15:11 PST, Roger Fong
bfulgham: review+
bfulgham: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Fong 2015-02-10 15:05:26 PST
I will be handling these 6 extensions and promoting them to core.

OES_standard_derivatives 
OES_element_index_uint 
EXT_sRGB 
EXT_blend_minmax 
EXT_frag_depth 
EXT_shader_texture_lod 

The other 3 already have other bugs tracking their progress.
Comment 1 Roger Fong 2015-02-10 15:11:56 PST
Created attachment 246346 [details]
patch

I don't yet have finalized tests ready to be landed for these changes (though I've confirmed that it works some hacked together tests locally). I'm working on other stuff now though so I just wanted to stick this patch up here for now to let EWS do its thing and for safe keeping (in case I run into a situation where I have to wipe my machine and all its data...which has happened to me more than once...)
Comment 2 WebKit Commit Bot 2015-02-10 15:13:14 PST
Attachment 246346 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Brent Fulgham 2015-02-10 21:47:09 PST
Comment on attachment 246346 [details]
patch

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

r=me, but please deal with the missing Bugzilla entry?

> Source/WebCore/ChangeLog:4
> +        rdar://problem/19633715.

Please file a related Bugzilla entry as well.

> Source/WebCore/html/canvas/WebGLRenderingContext.cpp:1151
> +                maxIndex = std::max(maxIndex, static_cast<int>(p[i]));

These snippets of code are scattered all through these WebGL classes. Couldn't we make these into templates of some kind to simplify the code?

Although, I guess this is just code moved from elsewhere. But could we do a clean-up pass to reduce some of this code duplication?
Comment 4 Roger Fong 2015-02-18 12:49:44 PST
Landed: http://trac.webkit.org/changeset/180285
Many of these methods in the WebGL2 implementation are still subject to change. 
I think before I start creating lots of helper methods that take lots of parameters to avoid code duplication, I'd like the implementation to become a little more finalized.