Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Issue 665073002: WebGL: optimize to draw WebGL on external destination. e.g. 2D Canvas. (Closed)

Created:
6 years, 2 months ago by dshwang
Modified:
6 years, 1 month ago
CC:
blink-reviews, krit, Rik, jbroman, mkwst+moarreviews_chromium.org, danakj, pdr+graphicswatchlist_chromium.org, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

WebGL: optimize to draw WebGL on external destination. e.g. 2D Canvas. DrawingBuffer::paintCompositedResultsToCanvas()/copyToPlatformTexture() reuses the mailbox which was created for the compositor, instead of creating a temporary mailbox. It reduces mailbox creation as well as avoids context switching and glFlush. BUG=331181 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184774

Patch Set 1 #

Total comments: 1

Patch Set 2 : Apply this optimization to copyToPlatformTexture() also #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -26 lines) Patch
M Source/platform/graphics/gpu/DrawingBuffer.h View 1 chunk +5 lines, -1 line 0 comments Download
M Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 6 chunks +20 lines, -25 lines 3 comments Download

Messages

Total messages: 15 (3 generated)
dshwang
bajones@, could you review?
6 years, 2 months ago (2014-10-20 14:22:48 UTC) #2
bajones
On 2014/10/20 at 14:22:48, dongseong.hwang wrote: > bajones@, could you review? Wouldn't this fail if ...
6 years, 2 months ago (2014-10-20 17:49:23 UTC) #3
dshwang
Thanks for review. On 2014/10/20 17:49:23, bajones wrote: > Wouldn't this fail if paintCompositedResultsToCanvas gets ...
6 years, 2 months ago (2014-10-20 19:00:26 UTC) #4
bajones
On 2014/10/20 at 19:00:26, dongseong.hwang wrote: > Thanks for review. > > On 2014/10/20 17:49:23, ...
6 years, 2 months ago (2014-10-20 20:08:19 UTC) #5
dshwang
On 2014/10/20 20:08:19, bajones wrote: > Neither zmo@ or I are Blink-side owners of the ...
6 years, 2 months ago (2014-10-20 20:33:31 UTC) #6
dshwang
kbr@, could you review this small CL?
6 years, 1 month ago (2014-10-30 06:16:02 UTC) #7
Ken Russell (switch to Gerrit)
Looks good, but one question. https://codereview.chromium.org/665073002/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/665073002/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode487 Source/platform/graphics/gpu/DrawingBuffer.cpp:487: context->waitSyncPoint(mailbox.syncPoint); Forgive my ignorance, ...
6 years, 1 month ago (2014-10-31 00:54:21 UTC) #8
dshwang
https://codereview.chromium.org/665073002/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/665073002/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode487 Source/platform/graphics/gpu/DrawingBuffer.cpp:487: context->waitSyncPoint(mailbox.syncPoint); On 2014/10/31 00:54:21, Ken Russell wrote: > Forgive ...
6 years, 1 month ago (2014-10-31 06:46:07 UTC) #10
Ken Russell (switch to Gerrit)
lgtm https://codereview.chromium.org/665073002/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/665073002/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode487 Source/platform/graphics/gpu/DrawingBuffer.cpp:487: context->waitSyncPoint(mailbox.syncPoint); On 2014/10/31 06:46:07, dshwang wrote: > On ...
6 years, 1 month ago (2014-10-31 21:32:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/665073002/20001
6 years, 1 month ago (2014-11-01 16:10:13 UTC) #13
dshwang
On 2014/10/31 21:32:54, Ken Russell wrote: > lgtm > > https://codereview.chromium.org/665073002/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp > File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): ...
6 years, 1 month ago (2014-11-01 16:12:25 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-11-01 16:38:40 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 184774

Powered by Google App Engine
This is Rietveld 408576698