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

Issue 2914863003: Use SaveLayerAlpha bounds when doing Save-Draw-Restore optimization (Closed)

Created:
3 years, 6 months ago by danakj
Modified:
3 years, 6 months ago
Reviewers:
chrishtr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, vmpstr
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Use SaveLayerAlpha bounds when doing Save-Draw-Restore optimization When a recording does SaveLayerAlpha followed by a single drawing op and a Restore, we can optimize that as drawing the single op with a modified alpha. When we can't do this optimization, we were sometimes throwing away the bounds of the SaveLayerAlpha. This would make a different set of calls for SaveLayerAlpha-Draw-Draw-Restore vs SaveLayerAlpha-Draw-Restore, where the latter would not use the bounds but the former would. Because we were dropping bounds, we've accrued code that gave incorrect bounds and relied on them being dropped. I've fixed that in PaintGeneratedImage in this CL to give correct LayoutTest results. This change is verified by layout tests such as http/tests/csspaint/background-image-alpha.html which would fail with this CL if we didn't make the change, as this CL would cause us to clip things outside the incorrect bounds. BUG=671433 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2914863003 Cr-Commit-Position: refs/heads/master@{#476303} Committed: https://chromium.googlesource.com/chromium/src/+/b8da9c95f075fcaf5cbe8e646d22a711f1ccac30

Patch Set 1 #

Patch Set 2 : savebounds . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -18 lines) Patch
M cc/paint/display_item_list.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/paint/paint_op_buffer.h View 1 chunk +3 lines, -1 line 0 comments Download
M cc/paint/paint_op_buffer.cc View 1 10 chunks +30 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (21 generated)
danakj
3 years, 6 months ago (2017-05-31 21:58:26 UTC) #4
enne (OOO)
lgtm
3 years, 6 months ago (2017-05-31 22:15:36 UTC) #17
chrishtr
lgtm
3 years, 6 months ago (2017-06-01 00:41:51 UTC) #20
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/2914863003/80001
3 years, 6 months ago (2017-06-01 14:06:08 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 15:52:18 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b8da9c95f075fcaf5cbe8e646d22...

Powered by Google App Engine
This is Rietveld 408576698