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

Issue 269813010: Add SaveLayer-Draw-Restore optimization. (Closed)

Created:
6 years, 7 months ago by mtklein_C
Modified:
6 years, 7 months ago
Reviewers:
mtklein, robertphillips
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Add SaveLayer-Draw-Restore optimization. This is like SkPictureRecord's remove_save_layer1 but works with all draw calls. Interesting patterns removed: SaveLayer-DrawRect-Restore: Silk SKPs, desk_weather SaveLayer-DrawPath-Restore: desk_carsvg, desk_wowwiki, tabl_androidpolice SaveLayer-DrawPosTextH-Restore: tabl_android_police There may be others, but I stopped looking. BUG=skia:2378 Committed: http://code.google.com/p/skia/source/detail?r=14610

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : tests #

Patch Set 4 : returns #

Total comments: 4

Patch Set 5 : notes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -0 lines) Patch
M src/record/SkRecordOpts.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/record/SkRecordOpts.cpp View 1 2 3 4 2 chunks +68 lines, -0 lines 0 comments Download
M tests/RecordOptsTest.cpp View 1 2 2 chunks +75 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mtklein
6 years, 7 months ago (2014-05-06 20:33:40 UTC) #1
robertphillips
lgtm https://codereview.chromium.org/269813010/diff/60001/src/record/SkRecordOpts.cpp File src/record/SkRecordOpts.cpp (right): https://codereview.chromium.org/269813010/diff/60001/src/record/SkRecordOpts.cpp#newcode99 src/record/SkRecordOpts.cpp:99: const uint32_t drawColor = drawPaint->getColor(); In some cases ...
6 years, 7 months ago (2014-05-07 14:28:15 UTC) #2
mtklein
https://codereview.chromium.org/269813010/diff/60001/src/record/SkRecordOpts.cpp File src/record/SkRecordOpts.cpp (right): https://codereview.chromium.org/269813010/diff/60001/src/record/SkRecordOpts.cpp#newcode99 src/record/SkRecordOpts.cpp:99: const uint32_t drawColor = drawPaint->getColor(); On 2014/05/07 14:28:15, robertphillips ...
6 years, 7 months ago (2014-05-07 14:38:14 UTC) #3
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-05-07 14:38:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/269813010/80001
6 years, 7 months ago (2014-05-07 14:39:07 UTC) #5
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 14:47:57 UTC) #6
Message was sent while issue was closed.
Change committed as 14610

Powered by Google App Engine
This is Rietveld 408576698