WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
66809
[SKIA] Allow WebKitGraphicsContext3D implementation to provide a compatible GrGLInterface
https://bugs.webkit.org/show_bug.cgi?id=66809
Summary
[SKIA] Allow WebKitGraphicsContext3D implementation to provide a compatible G...
Brian Salomon
Reported
2011-08-23 14:08:00 PDT
[SKIA] Allow WebKitGraphicsContext3D implementation to provide a compatible GrGLInterface
Attachments
Patch
(2.48 KB, patch)
2011-08-23 14:09 PDT
,
Brian Salomon
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brian Salomon
Comment 1
2011-08-23 14:09:09 PDT
Created
attachment 104912
[details]
Patch
Brian Salomon
Comment 2
2011-08-23 14:11:50 PDT
A follow on Chromium change will override grGLInterface in WGC3D subclasses. Passing NULL to GrContext::Create means use the default GrGLInterface. So this change by itself causes no change in behavior.
Jeff Timanus
Comment 3
2011-08-23 14:50:30 PDT
Comment on
attachment 104912
[details]
Patch This change LGTM. I wonder, should we use the platform-agnostic GrPlatform3DContext type for the WebGraphicsContext3D interface, instead of the OpenGL specific GrGLInterface? That would save on the need for a reinterpret cast.
Brian Salomon
Comment 4
2011-08-23 20:00:25 PDT
Hmm.. There are three subclasses of WGC3D in Chromium that'd have to cast to GrPlatform3DContext in their overrides. I think having the GrGLInterface type in the virtual's signature makes it a little bit more clear what is expected of the override. If the subclass is going to give a agnostic GrPlatform3DContext then it seems to me that it should also provide the GrEngine enum as well since they have to be consistent. Maybe that's not a bad way to go but we aren't expecting a WGC3D subclass that is backed by anything but GL anytime soon.
Stephen White
Comment 5
2011-08-24 07:03:54 PDT
Comment on
attachment 104912
[details]
Patch That makes sense. Since Jeff gave unofficial LG, I'm r+'ing as-is.
WebKit Review Bot
Comment 6
2011-08-24 08:04:45 PDT
Comment on
attachment 104912
[details]
Patch Clearing flags on attachment: 104912 Committed
r93707
: <
http://trac.webkit.org/changeset/93707
>
WebKit Review Bot
Comment 7
2011-08-24 08:04:48 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug