RESOLVED FIXED Bug 43608
[chromium] Implement GLES2Canvas/Texture in terms of GraphicsContext3D instead of direct OpenGL calls
https://bugs.webkit.org/show_bug.cgi?id=43608
Summary [chromium] Implement GLES2Canvas/Texture in terms of GraphicsContext3D instea...
James Robinson
Reported 2010-08-05 22:03:33 PDT
[chromium] Implement GLES2Canvas/Texture in terms of GraphicsContext3D instead of direct OpenGL calls
Attachments
Patch (38.00 KB, patch)
2010-08-05 22:09 PDT, James Robinson
no flags
Patch (38.36 KB, patch)
2010-08-06 11:45 PDT, James Robinson
no flags
Patch (38.09 KB, patch)
2010-08-06 12:05 PDT, James Robinson
no flags
James Robinson
Comment 1 2010-08-05 22:09:41 PDT
James Robinson
Comment 2 2010-08-05 22:10:37 PDT
What say ye, Stephen? I don't plan to land this until the GraphicsContext3D change lands in https://bugs.webkit.org/show_bug.cgi?id=43362 (assuming it does), but would appreciate a review.
James Robinson
Comment 3 2010-08-05 22:22:15 PDT
BTW, we should rename these classes as well and move them somewhere common at some point.
Stephen White
Comment 4 2010-08-06 07:52:22 PDT
Comment on attachment 63691 [details] Patch WebCore/platform/graphics/chromium/GLES2Canvas.cpp:117 + m_context->deleteBuffer(m_quadVertices); While you're there, you should probably change this to m_quadIndices (bug). WebCore/platform/graphics/chromium/GLES2Canvas.cpp:138 + m_context->prepareTexture(); I think this prepareTexture() call is wrong. WebCore/platform/graphics/chromium/GLES2Canvas.cpp:167 + m_context->prepareTexture(); Same as above, prepareTexture() can go away (I think). WebCore/platform/graphics/chromium/GLES2Texture.cpp:70 + return 0; I think this will leak the texture. If you're going to early-return here, you should deleteTexture(). It might be better to just move this check to the start of the function. WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:801 + platformContext()->restore(); Rather than adding a platformContext()->restore here, I'd prefer that this block be moved above platformContext()->save(). Looks good other than that.
James Robinson
Comment 5 2010-08-06 11:45:29 PDT
James Robinson
Comment 6 2010-08-06 11:46:03 PDT
PTAL.
James Robinson
Comment 7 2010-08-06 12:05:41 PDT
Stephen White
Comment 8 2010-08-06 12:49:27 PDT
(In reply to comment #7) > Created an attachment (id=63750) [details] > Patch LGTM (as a non-reviewer).
Dimitri Glazkov (Google)
Comment 9 2010-08-06 14:47:17 PDT
Comment on attachment 63750 [details] Patch WebCore/ChangeLog:10 + applying the regex s/gl([A-Z])/m_context->%1</ and removing unnecessary makeCurrent() calls. I approve the use of regular expressions to describe the changes being made. I would expect nothing less from you thereon.
James Robinson
Comment 10 2010-08-06 14:59:15 PDT
Comment on attachment 63750 [details] Patch Clearing flags on attachment: 63750 Committed r64872: <http://trac.webkit.org/changeset/64872>
James Robinson
Comment 11 2010-08-06 14:59:20 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.