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

Issue 767333002: Defer saves() until they're needed (Closed)

Created:
6 years ago by reed1
Modified:
6 years ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Defer saves() until they're needed patch from issue 759443006 at patchset 40001 (http://crrev.com/759443006#ps40001) BUG=skia: Committed: https://skia.googlesource.com/skia/+/2ff1fcede1e9525285c5de1f35fb2dcb0fab32bd

Patch Set 1 #

Patch Set 2 : use counter instead of stack #

Patch Set 3 : #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : now with faster counter #

Total comments: 14

Patch Set 7 : update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -161 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 18 chunks +71 lines, -30 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 1 chunk +7 lines, -4 lines 0 comments Download
M tests/PictureBBHTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M tests/RecordDrawTest.cpp View 1 2 3 4 3 chunks +36 lines, -15 lines 0 comments Download
M tests/RecordOptsTest.cpp View 1 2 3 3 chunks +23 lines, -18 lines 0 comments Download
M tests/RecordPatternTest.cpp View 1 2 3 4 5 6 2 chunks +20 lines, -72 lines 0 comments Download
M tests/RecordReplaceDrawTest.cpp View 1 2 3 4 5 6 4 chunks +31 lines, -18 lines 0 comments Download
M tests/RecordTestUtils.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
reed1
I understand Florin's alternative, and will try to refactor this one to isolate just the ...
6 years ago (2014-12-01 20:34:39 UTC) #2
reed1
My motivation (last week) for trying this was a perceived perf hit in sampleapp when ...
6 years ago (2014-12-01 20:49:25 UTC) #3
reed1
PTAL should I just remove the #if 0 tests, or can they robustly be redone?
6 years ago (2014-12-10 18:30:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767333002/40001
6 years ago (2014-12-10 18:32:05 UTC) #6
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years ago (2014-12-10 18:32:05 UTC) #7
robertphillips
https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp#newcode823 src/core/SkCanvas.cpp:823: fCallingWillSave = false; Do we need this cast ? ...
6 years ago (2014-12-10 18:43:53 UTC) #9
robertphillips
https://codereview.chromium.org/767333002/diff/40001/tests/RecordOptsTest.cpp File tests/RecordOptsTest.cpp (right): https://codereview.chromium.org/767333002/diff/40001/tests/RecordOptsTest.cpp#newcode19 tests/RecordOptsTest.cpp:19: #if 0 Probably remove & add explicit deferred save ...
6 years ago (2014-12-10 19:04:22 UTC) #10
f(malita)
https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp#newcode184 src/core/SkCanvas.cpp:184: int fDeferredSaveCount; I always imagined this to be an ...
6 years ago (2014-12-10 19:49:33 UTC) #12
reed1
https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp#newcode799 src/core/SkCanvas.cpp:799: int SkCanvas::getSaveCount() const { On 2014/12/10 19:49:33, Florin Malita ...
6 years ago (2014-12-10 20:06:36 UTC) #13
f(malita)
https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp#newcode809 src/core/SkCanvas.cpp:809: return count; On 2014/12/10 20:06:35, reed1 wrote: > On ...
6 years ago (2014-12-10 20:13:58 UTC) #14
f(malita)
On 2014/12/10 20:13:58, Florin Malita wrote: > https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp > File src/core/SkCanvas.cpp (right): > > https://codereview.chromium.org/767333002/diff/40001/src/core/SkCanvas.cpp#newcode809 ...
6 years ago (2014-12-10 20:18:18 UTC) #15
reed1
https://codereview.chromium.org/767333002/diff/40001/tests/RecordOptsTest.cpp File tests/RecordOptsTest.cpp (right): https://codereview.chromium.org/767333002/diff/40001/tests/RecordOptsTest.cpp#newcode19 tests/RecordOptsTest.cpp:19: #if 0 On 2014/12/10 19:04:22, robertphillips wrote: > Probably ...
6 years ago (2014-12-10 20:42:45 UTC) #16
f(malita)
lgtm % getSaveCount() perf anxiety :)
6 years ago (2014-12-10 20:54:19 UTC) #17
reed1
as many tests updated as I knew how to. The remaining I've left as #if ...
6 years ago (2014-12-10 21:26:18 UTC) #18
reed1
ptal
6 years ago (2014-12-10 21:26:28 UTC) #19
robertphillips
https://codereview.chromium.org/767333002/diff/100001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/767333002/diff/100001/src/core/SkCanvas.cpp#newcode816 src/core/SkCanvas.cpp:816: fMCRec->fDeferredSaveCount += 1; rm this ? https://codereview.chromium.org/767333002/diff/100001/tests/PictureBBHTest.cpp File tests/PictureBBHTest.cpp ...
6 years ago (2014-12-11 13:24:37 UTC) #20
reed1
https://codereview.chromium.org/767333002/diff/100001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/767333002/diff/100001/src/core/SkCanvas.cpp#newcode816 src/core/SkCanvas.cpp:816: fMCRec->fDeferredSaveCount += 1; On 2014/12/11 13:24:36, robertphillips wrote: > ...
6 years ago (2014-12-11 14:54:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767333002/120001
6 years ago (2014-12-11 14:54:33 UTC) #24
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years ago (2014-12-11 14:54:34 UTC) #25
robertphillips
lgtm
6 years ago (2014-12-11 15:07:07 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://skia.googlesource.com/skia/+/2ff1fcede1e9525285c5de1f35fb2dcb0fab32bd
6 years ago (2014-12-11 15:07:42 UTC) #27
scroggo
6 years ago (2014-12-11 15:31:35 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/798593003/ by scroggo@google.com.

The reason for reverting is: Failing tests:
http://chromegw.corp.google.com/i/client.skia/builders/Test-Win8-ShuttleA-GTX....

Powered by Google App Engine
This is Rietveld 408576698