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

Issue 153883002: Update SkPictureRecord to allow some ops to be written separately (Closed)

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

Description

Delaying & reordering the emission of save/saveLayer/restore, clip and matrix calls requires that we be able to write out the delayed operations separate from the usual serialization. This CL adds new *Impl entry points that actual write out the delayable operations. This CL also bubbles the clip op's offset location up the call stack to allow alternate implementations of the op skipping system.

Patch Set 1 #

Patch Set 2 : cleaned up #

Patch Set 3 : More cleanup #

Patch Set 4 : Missing base file (reupload) #

Total comments: 4

Patch Set 5 : Add comment #

Patch Set 6 : removed accidentally added file #

Total comments: 8

Patch Set 7 : Address code review comments #

Patch Set 8 : Added comment and moved entry point to protected block #

Total comments: 2

Patch Set 9 : renamed restoreImpl to recordRestore #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -54 lines) Patch
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -3 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 16 chunks +95 lines, -51 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
robertphillips
6 years, 10 months ago (2014-02-04 15:39:56 UTC) #1
reed1
any measurable impact on our record benches? https://codereview.chromium.org/153883002/diff/70001/src/core/SkPictureRecord.h File src/core/SkPictureRecord.h (right): https://codereview.chromium.org/153883002/diff/70001/src/core/SkPictureRecord.h#newcode111 src/core/SkPictureRecord.h:111: int recordRestoreOffsetPlaceholder(SkRegion::Op); ...
6 years, 10 months ago (2014-02-04 15:47:16 UTC) #2
mtklein
https://codereview.chromium.org/153883002/diff/180001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/153883002/diff/180001/src/core/SkPictureRecord.cpp#newcode167 src/core/SkPictureRecord.cpp:167: /* Don't actually call saveLayer, because that will try ...
6 years, 10 months ago (2014-02-04 16:33:57 UTC) #3
robertphillips
This change has no measureable impact on the recording bench times. https://codereview.chromium.org/153883002/diff/70001/src/core/SkPictureRecord.h File src/core/SkPictureRecord.h (right): ...
6 years, 10 months ago (2014-02-04 19:08:01 UTC) #4
mtklein
https://codereview.chromium.org/153883002/diff/180001/src/core/SkPictureRecord.h File src/core/SkPictureRecord.h (right): https://codereview.chromium.org/153883002/diff/180001/src/core/SkPictureRecord.h#newcode167 src/core/SkPictureRecord.h:167: int addPathToHeap(const SkPath& path); On 2014/02/04 19:08:01, robertphillips wrote: ...
6 years, 10 months ago (2014-02-04 19:09:02 UTC) #5
robertphillips
https://codereview.chromium.org/153883002/diff/180001/src/core/SkPictureRecord.h File src/core/SkPictureRecord.h (right): https://codereview.chromium.org/153883002/diff/180001/src/core/SkPictureRecord.h#newcode167 src/core/SkPictureRecord.h:167: int addPathToHeap(const SkPath& path); On 2014/02/04 19:09:02, mtklein wrote: ...
6 years, 10 months ago (2014-02-04 19:20:32 UTC) #6
mtklein
lgtm, modulo restoreImpl. https://codereview.chromium.org/153883002/diff/190003/src/core/SkPictureRecord.h File src/core/SkPictureRecord.h (right): https://codereview.chromium.org/153883002/diff/190003/src/core/SkPictureRecord.h#newcode251 src/core/SkPictureRecord.h:251: void restoreImpl(); Rename this guy too?
6 years, 10 months ago (2014-02-04 19:59:52 UTC) #7
robertphillips
https://codereview.chromium.org/153883002/diff/190003/src/core/SkPictureRecord.h File src/core/SkPictureRecord.h (right): https://codereview.chromium.org/153883002/diff/190003/src/core/SkPictureRecord.h#newcode251 src/core/SkPictureRecord.h:251: void restoreImpl(); On 2014/02/04 19:59:53, mtklein wrote: > Rename ...
6 years, 10 months ago (2014-02-04 20:02:52 UTC) #8
robertphillips
6 years, 10 months ago (2014-02-04 20:08:09 UTC) #9
Message was sent while issue was closed.
committed as r13311

Powered by Google App Engine
This is Rietveld 408576698