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

Issue 2808493002: [blink] Request compositing update when canvas hibernates/wakes up. (Closed)

Created:
3 years, 8 months ago by Eric Seckler
Modified:
3 years, 8 months ago
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-html_chromium.org, Rik, chromium-reviews, dglazkov+blink, dshwang
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[blink] Request compositing update when canvas hibernates/wakes up. Not requesting the update can lead to the canvas not being shown, as in the bug referenced below. BUG=708445 Review-Url: https://codereview.chromium.org/2808493002 Cr-Commit-Position: refs/heads/master@{#465206} Committed: https://chromium.googlesource.com/chromium/src/+/5047940999a9cf13e8635e61112fdaa7db885726

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : trigger compositing update from Canvas2DLayerBridge instead #

Total comments: 2

Patch Set 4 : fix test for platforms that disable hibernation #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -4 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp View 1 2 3 4 5 chunks +76 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBufferClient.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 52 (38 generated)
Eric Seckler
Chris, I believe this is a more appropriate fix, unit test included. Thanks!
3 years, 8 months ago (2017-04-07 17:05:32 UTC) #6
chrishtr
https://codereview.chromium.org/2808493002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2808493002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode1220 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:1220: setNeedsCompositingUpdate(); Which of the conditions below depend on page ...
3 years, 8 months ago (2017-04-07 17:12:33 UTC) #7
Eric Seckler
https://codereview.chromium.org/2808493002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/2808493002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode1220 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:1220: setNeedsCompositingUpdate(); On 2017/04/07 17:12:32, chrishtr wrote: > Which of ...
3 years, 8 months ago (2017-04-07 17:27:11 UTC) #8
Justin Novosad
I don't think this is the right fix because the switch to hibernation is asynchronous ...
3 years, 8 months ago (2017-04-07 18:50:21 UTC) #9
Eric Seckler
On 2017/04/07 18:50:21, Justin Novosad wrote: > I don't think this is the right fix ...
3 years, 8 months ago (2017-04-10 15:18:14 UTC) #12
Eric Seckler
https://codereview.chromium.org/2808493002/diff/40001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp (right): https://codereview.chromium.org/2808493002/diff/40001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp#newcode1423 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp:1423: ElementRequestsCompositingUpdateOnHibernateAndWakeUp) { The test seems to be failing on ...
3 years, 8 months ago (2017-04-11 07:32:59 UTC) #18
Eric Seckler
https://codereview.chromium.org/2808493002/diff/40001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp (right): https://codereview.chromium.org/2808493002/diff/40001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp#newcode1423 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp:1423: ElementRequestsCompositingUpdateOnHibernateAndWakeUp) { On 2017/04/11 07:32:59, Eric Seckler wrote: > ...
3 years, 8 months ago (2017-04-11 07:40:32 UTC) #19
Eric Seckler
Chris, Justin, PTAL :)
3 years, 8 months ago (2017-04-13 08:10:37 UTC) #40
chrishtr
I defer to junov@ on this review.
3 years, 8 months ago (2017-04-13 14:39:53 UTC) #41
Justin Novosad
lgtm
3 years, 8 months ago (2017-04-13 16:45:49 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2808493002/120001
3 years, 8 months ago (2017-04-13 16:49:13 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/349198)
3 years, 8 months ago (2017-04-13 17:07:15 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2808493002/140001
3 years, 8 months ago (2017-04-18 10:22:37 UTC) #49
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 12:18:54 UTC) #52
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/5047940999a9cf13e8635e61112f...

Powered by Google App Engine
This is Rietveld 408576698