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

Issue 252873005: add replay entry point to SkPictureRecorder for Android (Closed)

Created:
6 years, 7 months ago by robertphillips
Modified:
6 years, 7 months ago
Reviewers:
djsollen, scroggo, mtklein, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

add replay entry point to SkPictureRecorder for Android This CL adds an Android-only entry point to address the Java Picture(Picture) and serialize use cases. Note that (in its current form) it doesn't preserve the old API's handling of unbalanced saves/saveLayers (this CL always balances them). Committed: http://code.google.com/p/skia/source/detail?r=14911

Patch Set 1 #

Total comments: 21

Patch Set 2 : update to ToT #

Patch Set 3 : Address code review comments #

Total comments: 6

Patch Set 4 : Improve unit test comments #

Patch Set 5 : Fix Android compiler issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -4 lines) Patch
M include/core/SkPictureRecorder.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 3 chunks +130 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
robertphillips
https://codereview.chromium.org/252873005/diff/1/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/252873005/diff/1/tests/PictureTest.cpp#newcode837 tests/PictureTest.cpp:837: This is where the save/saveLayer balancing occurs in the ...
6 years, 7 months ago (2014-04-28 17:35:21 UTC) #1
robertphillips
PTAL - this patch seems viable given that Android seems amenable to altering the side-effects ...
6 years, 7 months ago (2014-04-30 20:02:15 UTC) #2
scroggo
lgtm https://codereview.chromium.org/252873005/diff/1/src/core/SkPictureRecorder.cpp File src/core/SkPictureRecorder.cpp (right): https://codereview.chromium.org/252873005/diff/1/src/core/SkPictureRecorder.cpp#newcode8 src/core/SkPictureRecorder.cpp:8: #include "SkPicturePlayback.h" Isn't this only for SK_BUILD_FOR_ANDROID?
6 years, 7 months ago (2014-04-30 20:05:43 UTC) #3
mtklein
https://codereview.chromium.org/252873005/diff/1/include/core/SkPictureRecorder.h File include/core/SkPictureRecorder.h (right): https://codereview.chromium.org/252873005/diff/1/include/core/SkPictureRecorder.h#newcode102 include/core/SkPictureRecorder.h:102: #ifdef SK_BUILD_FOR_ANDROID Is this necessary to build, or just ...
6 years, 7 months ago (2014-04-30 20:20:11 UTC) #4
robertphillips
Finally worked my way back around to this. PTAL. https://codereview.chromium.org/252873005/diff/1/include/core/SkPictureRecorder.h File include/core/SkPictureRecorder.h (right): https://codereview.chromium.org/252873005/diff/1/include/core/SkPictureRecorder.h#newcode102 include/core/SkPictureRecorder.h:102: ...
6 years, 7 months ago (2014-05-27 14:10:07 UTC) #5
scroggo
lgtm https://codereview.chromium.org/252873005/diff/40001/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/252873005/diff/40001/tests/PictureTest.cpp#newcode1114 tests/PictureTest.cpp:1114: for (int i = 0; i < 4; ...
6 years, 7 months ago (2014-05-27 14:50:03 UTC) #6
robertphillips
https://codereview.chromium.org/252873005/diff/40001/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/252873005/diff/40001/tests/PictureTest.cpp#newcode1114 tests/PictureTest.cpp:1114: for (int i = 0; i < 4; ++i) ...
6 years, 7 months ago (2014-05-27 17:23:38 UTC) #7
mtklein
lgtm
6 years, 7 months ago (2014-05-27 17:26:03 UTC) #8
reed1
lgtm
6 years, 7 months ago (2014-05-27 17:34:36 UTC) #9
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 7 months ago (2014-05-27 23:36:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/252873005/80001
6 years, 7 months ago (2014-05-27 23:36:21 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 23:41:47 UTC) #12
Message was sent while issue was closed.
Change committed as 14911

Powered by Google App Engine
This is Rietveld 408576698