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

Issue 366443002: Implement SkRecord::willPlaybackBitmaps, cache in SkPicture (Closed)

Created:
6 years, 5 months ago by Tom Hudson
Modified:
6 years, 5 months ago
Reviewers:
reed, reed1, mtklein, tomhudson
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Linear-time implementation of willPlaybackBitmaps(), computed & cached on construction in SkPicture. Unit test. Template trickery thanks to mtklein@. BUG=skia:2702 R=mtklein,reed Committed: https://skia.googlesource.com/skia/+/d930511ee73bf0ddc8bdf570ec23a17dd3e19709

Patch Set 1 #

Patch Set 2 : Fix comment in unit test #

Patch Set 3 : Cache value in SkPlayback #

Patch Set 4 : Add header to gypi #

Total comments: 5

Patch Set 5 : Move cache to SkPicture #

Patch Set 6 : Remove accidentally-included SkStream.cpp #

Patch Set 7 : Fix syntax error #

Patch Set 8 : Mike's macro suggestion #

Total comments: 5

Patch Set 9 : Comment tweak #

Patch Set 10 : Remove misleading check of record? #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -6 lines) Patch
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 9 10 8 chunks +15 lines, -5 lines 0 comments Download
A src/core/SkRecordAnalysis.h View 1 chunk +8 lines, -0 lines 0 comments Download
A src/core/SkRecordAnalysis.cpp View 1 chunk +66 lines, -0 lines 0 comments Download
M tests/RecordTest.cpp View 1 2 3 4 5 6 7 4 chunks +42 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
tomhudson
If I'm reading skia/skia_library.gypi correctly, we now include the third_party/skia gypis and so no longer ...
6 years, 5 months ago (2014-06-30 19:55:48 UTC) #1
tomhudson
+Enne, David to compare to the previous CL. This seems pretty trivial to write a ...
6 years, 5 months ago (2014-06-30 22:04:08 UTC) #2
tomhudson
Mike; PTAL - I think this is ready to land. I now cache the value ...
6 years, 5 months ago (2014-07-01 18:52:23 UTC) #3
mtklein
https://codereview.chromium.org/366443002/diff/60001/include/record/SkRecording.h File include/record/SkRecording.h (right): https://codereview.chromium.org/366443002/diff/60001/include/record/SkRecording.h#newcode47 include/record/SkRecording.h:47: bool willPlaybackBitmaps() const { return fWillPlaybackBitmaps; } This file ...
6 years, 5 months ago (2014-07-01 18:58:02 UTC) #4
mtklein
https://codereview.chromium.org/366443002/diff/60001/include/record/SkRecording.h File include/record/SkRecording.h (right): https://codereview.chromium.org/366443002/diff/60001/include/record/SkRecording.h#newcode47 include/record/SkRecording.h:47: bool willPlaybackBitmaps() const { return fWillPlaybackBitmaps; } On 2014/07/01 ...
6 years, 5 months ago (2014-07-01 19:02:24 UTC) #5
tomhudson
Now we need Mike Classic for API review. https://codereview.chromium.org/366443002/diff/60001/include/record/SkRecording.h File include/record/SkRecording.h (right): https://codereview.chromium.org/366443002/diff/60001/include/record/SkRecording.h#newcode47 include/record/SkRecording.h:47: bool ...
6 years, 5 months ago (2014-07-02 15:25:42 UTC) #6
mtklein
lgtm https://codereview.chromium.org/366443002/diff/140001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/366443002/diff/140001/include/core/SkPicture.h#newcode315 include/core/SkPicture.h:315: bool fRecordWillPlayBackBitmaps; // cached I think the // ...
6 years, 5 months ago (2014-07-02 15:53:08 UTC) #7
tomhudson
Mr Reed to the API Review theatre, paging Mr Reed. https://codereview.chromium.org/366443002/diff/140001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/366443002/diff/140001/include/core/SkPicture.h#newcode315 ...
6 years, 5 months ago (2014-07-02 19:21:34 UTC) #8
mtklein
https://codereview.chromium.org/366443002/diff/140001/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/366443002/diff/140001/src/core/SkPicture.cpp#newcode574 src/core/SkPicture.cpp:574: , fRecordWillPlayBackBitmaps(record ? SkRecordWillPlaybackBitmaps(*record) : false) { On 2014/07/02 ...
6 years, 5 months ago (2014-07-02 19:23:03 UTC) #9
reed1
api lgtm
6 years, 5 months ago (2014-07-02 19:56:54 UTC) #10
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 5 months ago (2014-07-05 20:09:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/366443002/180001
6 years, 5 months ago (2014-07-05 20:10:11 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-05 20:10:13 UTC) #13
commit-bot: I haz the power
Failed to apply patch for gyp/core.gypi: While running git apply --index -p1; error: patch failed: ...
6 years, 5 months ago (2014-07-05 20:10:14 UTC) #14
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 5 months ago (2014-07-05 20:25:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/366443002/200001
6 years, 5 months ago (2014-07-05 20:25:11 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-05 20:37:57 UTC) #17
Message was sent while issue was closed.
Change committed as d930511ee73bf0ddc8bdf570ec23a17dd3e19709

Powered by Google App Engine
This is Rietveld 408576698