RESOLVED FIXED 59626
[chromium] Add swapBuffersCompleteCallback to Extensions3DChromium
https://bugs.webkit.org/show_bug.cgi?id=59626
Summary [chromium] Add swapBuffersCompleteCallback to Extensions3DChromium
Nat Duca
Reported 2011-04-27 12:37:50 PDT
[chromium] Add swapBuffersCompleteCallback to Extensions3DChromium
Attachments
Patch (9.83 KB, patch)
2011-04-27 12:38 PDT, Nat Duca
no flags
Patch (9.46 KB, patch)
2011-04-27 22:00 PDT, Nat Duca
no flags
Ah, thats why extensions3dchromium was included. (9.67 KB, patch)
2011-04-27 22:06 PDT, Nat Duca
no flags
Patch (10.48 KB, patch)
2011-04-28 15:54 PDT, Nat Duca
no flags
Nat Duca
Comment 1 2011-04-27 12:38:34 PDT
Kenneth Russell
Comment 2 2011-04-27 18:53:11 PDT
Please provide more description in the bug report about why this functionality is being added.
Kenneth Russell
Comment 3 2011-04-27 19:07:22 PDT
Comment on attachment 91325 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=91325&action=review A few questions. Not touching the review bit yet. > Source/WebKit/chromium/public/WebGraphicsContext3D.h:65 > +#define WEBGRAPHICSCONTEXT3D_HAS_SWAPBUFFERS_COMPLETE_EXTENSION Is this being added just so that you can land the Chromium side patch before this one? If so, please remove it -- we wait for the WebKit change to land and roll before committing the downstream code. Otherwise the code would be littered with such #ifdefs. > Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:1213 > + m_impl->setSwapBuffersCompleteCallbackCHROMIUM(m_swapBuffersCompleteCallbackAdapter.get()); For safety during teardown, should we explicitly set m_impl's swap buffers callback to 0 in the destructor of GraphicsContext3DInternal? > Source/WebKit/chromium/src/WebViewImpl.cpp:56 > +#include "Extensions3DChromium.h" Why is this needed if there are no other code changes in this file?
Nat Duca
Comment 4 2011-04-27 21:59:22 PDT
> A few questions. Not touching the review bit yet. > > > Source/WebKit/chromium/public/WebGraphicsContext3D.h:65 > > +#define WEBGRAPHICSCONTEXT3D_HAS_SWAPBUFFERS_COMPLETE_EXTENSION Yanked. >setSwapBuffersCompleteCallbackCHROMIUM(m_swapBuffersCompleteCallbackAdapter.get(> For safety during teardown, should we explicitly set m_impl's swap buffers callback to 0 in the destructor of GraphicsContext3DInternal? I'm fine doing that, but e.g., ContextLostCallback, doesn't do that. I tend to agree with your suggestion so my upcoming patch reflects that.
Nat Duca
Comment 5 2011-04-27 22:00:53 PDT
WebKit Review Bot
Comment 6 2011-04-27 22:03:38 PDT
Attachment 91426 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:1193: Missing space inside { }. [whitespace/braces] [5] Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:1195: Missing space inside { }. [whitespace/braces] [5] Source/WebCore/platform/graphics/chromium/Extensions3DChromium.h:84: Missing space inside { }. [whitespace/braces] [5] Source/WebKit/chromium/public/WebGraphicsContext3D.h:108: Missing space inside { }. [whitespace/braces] [5] Source/WebKit/chromium/public/WebGraphicsContext3D.h:184: Missing space inside { }. [whitespace/braces] [5] Total errors found: 5 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 7 2011-04-27 22:05:47 PDT
Nat Duca
Comment 8 2011-04-27 22:06:00 PDT
Created attachment 91427 [details] Ah, thats why extensions3dchromium was included.
WebKit Review Bot
Comment 9 2011-04-27 22:08:22 PDT
Attachment 91427 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:1193: Missing space inside { }. [whitespace/braces] [5] Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:1195: Missing space inside { }. [whitespace/braces] [5] Source/WebCore/platform/graphics/chromium/Extensions3DChromium.h:84: Missing space inside { }. [whitespace/braces] [5] Source/WebKit/chromium/public/WebGraphicsContext3D.h:108: Missing space inside { }. [whitespace/braces] [5] Source/WebKit/chromium/public/WebGraphicsContext3D.h:184: Missing space inside { }. [whitespace/braces] [5] Total errors found: 5 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Kenneth Russell
Comment 10 2011-04-28 15:24:34 PDT
Comment on attachment 91427 [details] Ah, thats why extensions3dchromium was included. Looks good but could you please clean up the style issues? Note that "webkit-patch upload" will run the style checker before upload and catch these issues before the bots do.
Nat Duca
Comment 11 2011-04-28 15:54:51 PDT
Nat Duca
Comment 12 2011-04-28 15:55:11 PDT
Le sigh... nduca:~/Local/chrome/src/third_party/WebKit $ check-webkit-style Total errors found: 0 in 7 files Git issue? Ugh.
Kenneth Russell
Comment 13 2011-04-28 15:57:27 PDT
Comment on attachment 91573 [details] Patch Fantastic. Thanks.
WebKit Commit Bot
Comment 14 2011-04-28 20:19:43 PDT
Comment on attachment 91573 [details] Patch Clearing flags on attachment: 91573 Committed r85292: <http://trac.webkit.org/changeset/85292>
WebKit Commit Bot
Comment 15 2011-04-28 20:19:48 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 16 2011-04-28 20:52:51 PDT
http://trac.webkit.org/changeset/85292 might have broken Windows 7 Release (Tests)
David Levin
Comment 17 2011-04-28 22:24:20 PDT
(In reply to comment #12) > Le sigh... > nduca:~/Local/chrome/src/third_party/WebKit $ check-webkit-style > Total errors found: 0 in 7 files > > Git issue? Ugh. (Very) recently added check. (You may not have had it.)
Note You need to log in before you can comment on or make changes to this bug.