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

Issue 1955683002: Avoid unnecessary clipping of gradient/generated images (Closed)

Created:
4 years, 7 months ago by f(malita)
Modified:
4 years, 7 months ago
Reviewers:
Stephen Chennney, reed1
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, Rik, Stephen Chennney, blink-reviews, danakj+watch_chromium.org, kinuko+watch, rwlbuis, bsalomon_chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid unnecessary clipping of gradient/generated images Refactor GradientGeneratedImage::draw() to a) use an adjusted draw rect instead of explicit/unconditional clipping b) completely avoid save/restores when not needed (identity transform) This speeds up Animometer/CSS Bouncing Gradient Circles by ~25% in software mode (no noticeable improvement for Ganesh). BUG=603966 R=schenney@chromium.org,reed@google.com Committed: https://crrev.com/26528184b3b96533811a96106193d33dd8693e87 Cr-Commit-Position: refs/heads/master@{#392145}

Patch Set 1 #

Patch Set 2 : simplify with MakeRectToRect #

Patch Set 3 : expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp View 1 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
f(malita)
Splitting the straightforward bits from http://crrev.com/1949253004. This removes the inner clipRect and save/restore from the ...
4 years, 7 months ago (2016-05-06 12:47:40 UTC) #2
reed1
lgtm
4 years, 7 months ago (2016-05-06 18:28:17 UTC) #3
bsalomon
On 2016/05/06 12:47:40, f(malita) wrote: > Splitting the straightforward bits from http://crrev.com/1949253004. > > This ...
4 years, 7 months ago (2016-05-06 18:33:29 UTC) #4
f(malita)
On 2016/05/06 18:33:29, bsalomon wrote: > On 2016/05/06 12:47:40, f(malita) wrote: > > Splitting the ...
4 years, 7 months ago (2016-05-06 18:43:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955683002/40001
4 years, 7 months ago (2016-05-06 20:44:42 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-06 20:48:58 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 20:50:26 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/26528184b3b96533811a96106193d33dd8693e87
Cr-Commit-Position: refs/heads/master@{#392145}

Powered by Google App Engine
This is Rietveld 408576698