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

Issue 2388293002: Disable GPU acceleration on 2D canvas when readbacks are needed (Closed)

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

Description

Disable GPU acceleration on 2D canvas when readbacks are needed We are already disabling GPU acceleration to avoid readbacks caused by calls to getImageData. This change applies the same principle to canvas-to-canvas drawImage calls in order to avoid probable future readbacks. BUG=652126, 651517, 650116, 642539, 640144 Committed: https://crrev.com/2b0d65c9311d7e87784e90d60bfc68efb5f03555 Cr-Commit-Position: refs/heads/master@{#422848}

Patch Set 1 #

Patch Set 2 : fixed tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -0 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp View 1 chunk +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h View 1 chunk +7 lines, -0 lines 2 comments Download

Messages

Total messages: 17 (9 generated)
Justin Novosad
PTAL
4 years, 2 months ago (2016-10-03 20:40:52 UTC) #4
xidachen
lgtm
4 years, 2 months ago (2016-10-04 00:48:58 UTC) #7
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/2388293002/20001
4 years, 2 months ago (2016-10-04 14:01:52 UTC) #10
xidachen
On 2016/10/04 14:01:52, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 2 months ago (2016-10-04 14:03:43 UTC) #11
Justin Novosad
On 2016/10/04 14:03:43, xidachen wrote: > On 2016/10/04 14:01:52, commit-bot: I haz the power wrote: ...
4 years, 2 months ago (2016-10-04 14:25:12 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-04 17:36:50 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2b0d65c9311d7e87784e90d60bfc68efb5f03555 Cr-Commit-Position: refs/heads/master@{#422848}
4 years, 2 months ago (2016-10-04 17:38:12 UTC) #15
Stephen White
4 years, 2 months ago (2016-10-04 18:40:14 UTC) #17
Message was sent while issue was closed.
Post-landing nits

https://codereview.chromium.org/2388293002/diff/20001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h
(right):

https://codereview.chromium.org/2388293002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h:72:
// from the gpu is necessary. This option cause the source canvas to
Nit: cause -> causes

https://codereview.chromium.org/2388293002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h:74:
// prevent future canvas to canvas draws from requiring a readback.
uNit: "canvas to canvas" -> "canvas-to-canvas"

Powered by Google App Engine
This is Rietveld 408576698