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

Issue 2687073003: Make disabling 2d canvas GPU acceleration for getImageData less aggressive. (Closed)

Created:
3 years, 10 months ago by xiangze.zhang
Modified:
3 years, 10 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, krit, dshwang, drott+blinkwatch_chromium.org, ajuma+watch-canvas_chromium.org, Stephen Chennney, blink-reviews-html_chromium.org, pdr+graphicswatchlist_chromium.org, jbroman, blink-reviews-platform-graphics_chromium.org, dglazkov+blink, Rik, f(malita), blink-reviews, kinuko+watch, ajuma+watch_chromium.org, danakj+watch_chromium.org, rwlbuis, Jin Yang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make disabling 2d canvas GPU acceleration for getImageData less aggressive. Make canvas switch out of gpu acceleration only when getImageData is called in successive frames. This will avoid disabling gpu acceleration when getImageData is only called once or is called very rarely. BUG=690122 Review-Url: https://codereview.chromium.org/2687073003 Cr-Commit-Position: refs/heads/master@{#451998} Committed: https://chromium.googlesource.com/chromium/src/+/c36340833135933c5934ece592fb41b82743e2d8

Patch Set 1 #

Patch Set 2 : Make the solution more general #

Patch Set 3 : Add test #

Total comments: 6

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -7 lines) Patch
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp View 1 2 1 chunk +15 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 1 2 3 4 chunks +19 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
xiangze.zhang
PTAL
3 years, 10 months ago (2017-02-10 07:49:25 UTC) #3
Justin Novosad
On 2017/02/10 07:49:25, xiangze.zhang wrote: > PTAL I agree with what you are doing here, ...
3 years, 10 months ago (2017-02-15 20:23:44 UTC) #4
xiangze.zhang
On 2017/02/15 20:23:44, Justin Novosad wrote: > On 2017/02/10 07:49:25, xiangze.zhang wrote: > > PTAL ...
3 years, 10 months ago (2017-02-16 08:44:56 UTC) #6
Justin Novosad
This is great. I just have a few minor corrections to suggest. FYI: An example ...
3 years, 10 months ago (2017-02-16 15:27:20 UTC) #9
xiangze.zhang
https://codereview.chromium.org/2687073003/diff/40001/third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h File third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h (right): https://codereview.chromium.org/2687073003/diff/40001/third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h#newcode81 third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h:81: GPUReadbackMinSuccessiveFrames = 3, On 2017/02/16 15:27:20, Justin Novosad wrote: ...
3 years, 10 months ago (2017-02-17 02:13:45 UTC) #12
Justin Novosad
lgtm
3 years, 10 months ago (2017-02-21 18:45:58 UTC) #13
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/2687073003/60001
3 years, 10 months ago (2017-02-22 01:12:05 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
3 years, 10 months ago (2017-02-22 03:15:01 UTC) #17
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/2687073003/60001
3 years, 10 months ago (2017-02-22 03:19:33 UTC) #19
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/315578)
3 years, 10 months ago (2017-02-22 09:39:00 UTC) #21
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/2687073003/60001
3 years, 10 months ago (2017-02-22 10:43:40 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/c36340833135933c5934ece592fb41b82743e2d8
3 years, 10 months ago (2017-02-22 11:41:50 UTC) #26
Ken Russell (switch to Gerrit)
3 years, 10 months ago (2017-02-24 07:01:43 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2714103002/ by kbr@chromium.org.

The reason for reverting is: Caused http://crbug.com/695471 -- regressions of
2D/WebGL canvas test on Linux AMD.
.

Powered by Google App Engine
This is Rietveld 408576698