WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(9.46 KB, patch)
2011-04-27 22:00 PDT
,
Nat Duca
no flags
Details
Formatted Diff
Diff
Ah, thats why extensions3dchromium was included.
(9.67 KB, patch)
2011-04-27 22:06 PDT
,
Nat Duca
no flags
Details
Formatted Diff
Diff
Patch
(10.48 KB, patch)
2011-04-28 15:54 PDT
,
Nat Duca
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Nat Duca
Comment 1
2011-04-27 12:38:34 PDT
Created
attachment 91325
[details]
Patch
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
Created
attachment 91426
[details]
Patch
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
Attachment 91426
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/8516315
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
Created
attachment 91573
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug