WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
81279
[chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept a struct with have backbuffer suggestion.
https://bugs.webkit.org/show_bug.cgi?id=81279
Summary
[chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept ...
Michal Mocny
Reported
2012-03-15 15:47:01 PDT
[chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept a struct with have backbuffer suggestion.
Attachments
Patch
(6.48 KB, patch)
2012-03-15 15:53 PDT
,
Michal Mocny
no flags
Details
Formatted Diff
Diff
Patch
(6.10 KB, patch)
2012-03-15 16:12 PDT
,
Michal Mocny
no flags
Details
Formatted Diff
Diff
Patch
(9.13 KB, patch)
2012-03-16 08:20 PDT
,
Michal Mocny
no flags
Details
Formatted Diff
Diff
Patch
(9.25 KB, patch)
2012-03-16 11:50 PDT
,
Michal Mocny
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Michal Mocny
Comment 1
2012-03-15 15:53:17 PDT
Created
attachment 132137
[details]
Patch
Michal Mocny
Comment 2
2012-03-15 15:55:25 PDT
Comment on
attachment 132137
[details]
Patch This is just providing a hint to the compositor about when to drop the backbuffer. The drop extension, and the compositor memory allocation callback coming soon.
James Robinson
Comment 3
2012-03-15 16:01:34 PDT
Comment on
attachment 132137
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132137&action=review
> Source/Platform/chromium/public/WebGraphicsContext3D.h:31 > +
spurious newline here
> Source/Platform/chromium/public/WebGraphicsContext3D.h:135 > + virtual void onMemoryAllocationChanged(const WebGraphicsMemoryAllocation&);
passing by value is probably just as (or more) efficient. can you leave a FIXME here indicating that the other version is going away and that this will become pure virtual once the chromium side lands?
> Source/Platform/chromium/public/WebGraphicsMemoryAllocation.h:34 > + unsigned int gpuResourceSizeInBytes;
here and elsewhere: we spell this type "unsigned", not "unsigned int"
> Source/Platform/chromium/public/WebGraphicsMemoryAllocation.h:50 > +inline bool operator==(const WebGraphicsMemoryAllocation& a, const WebGraphicsMemoryAllocation& b)
are these necessary?
James Robinson
Comment 4
2012-03-15 16:02:08 PDT
Comment on
attachment 132137
[details]
Patch Other than nits this API is fine with me if it's OK with Nat.
Michal Mocny
Comment 5
2012-03-15 16:12:38 PDT
Created
attachment 132140
[details]
Patch
Michal Mocny
Comment 6
2012-03-15 16:14:23 PDT
Fixed nits.
James Robinson
Comment 7
2012-03-15 16:36:50 PDT
Comment on
attachment 132140
[details]
Patch Looks good. I think Nat's unavailable for a few days, but we can refine when he gets back if there's more feedback.
Nat Duca
Comment 8
2012-03-15 17:36:29 PDT
Comment on
attachment 132140
[details]
Patch Isn't there an ExtensionsChromium change as well?
Michal Mocny
Comment 9
2012-03-15 18:09:23 PDT
Yes I did miss adding to ExtensionsChromium, so I will add it as part of the change to have compositor register a callback.
WebKit Review Bot
Comment 10
2012-03-16 01:52:52 PDT
Comment on
attachment 132140
[details]
Patch Rejecting
attachment 132140
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: Tools/Scripts/build-webkit', '--debug', '--chromium', '--update-chromium']" exit_code: 2 locationChangedCallbackAdapter:GraphicsContext3DChromium.cpp(.data.rel.ro._ZTVN7WebCore55GraphicsContext3DMemoryAllocationChangedCallbackAdapterE+0x18): error: undefined reference to 'WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::onMemoryAllocationChanged(WebKit::WebGraphicsMemoryAllocation)' collect2: ld returned 1 exit status make: *** [out/Debug/DumpRenderTree] Error 1 Full output:
http://queues.webkit.org/results/11962166
Michal Mocny
Comment 11
2012-03-16 08:20:59 PDT
Created
attachment 132287
[details]
Patch
Michal Mocny
Comment 12
2012-03-16 08:22:52 PDT
Fixed the build issue and added the Extension3DChromium change.
WebKit Review Bot
Comment 13
2012-03-16 08:30:04 PDT
Please wait for approval from
fishd@chromium.org
,
abarth@webkit.org
or
jamesr@chromium.org
before submitting because this patch contains changes to the Chromium platform API.
Michal Mocny
Comment 14
2012-03-16 11:50:13 PDT
Created
attachment 132333
[details]
Patch
Michal Mocny
Comment 15
2012-03-16 11:51:54 PDT
Comment on
attachment 132333
[details]
Patch Added a default implementation for allocation callback taking the struct.
WebKit Review Bot
Comment 16
2012-03-19 12:19:29 PDT
Comment on
attachment 132333
[details]
Patch Clearing flags on attachment: 132333 Committed
r111216
: <
http://trac.webkit.org/changeset/111216
>
WebKit Review Bot
Comment 17
2012-03-19 12:19:37 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