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

Issue 22875008: Prevent picture recording from over optimizing the culling of clips. (Closed)

Created:
7 years, 4 months ago by djsollen
Modified:
7 years, 4 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Prevent picture recording from over optimizing the culling of clips. BUG=skia:1496 R=mtklein@google.com, reed@google.com, robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=10689

Patch Set 1 #

Patch Set 2 : attempt to fix mismatch #

Total comments: 14

Patch Set 3 : addressing comments #

Total comments: 3

Patch Set 4 : loop #

Patch Set 5 : #

Total comments: 7

Patch Set 6 : more fixes #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -37 lines) Patch
A + gm/canvasstate.cpp View 1 2 3 4 5 6 1 chunk +76 lines, -36 lines 0 comments Download
M gyp/gmslides.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
djsollen
This is still failing on tiled and rtree playback and I don't know why.
7 years, 4 months ago (2013-08-12 20:51:06 UTC) #1
robertphillips
I only get "error: old chunk mismatch" errors when I try to review this.
7 years, 4 months ago (2013-08-13 11:36:15 UTC) #2
robertphillips
lgtm + nits & some (mainly comment) suggestions https://codereview.chromium.org/22875008/diff/16001/gm/canvasstate.cpp File gm/canvasstate.cpp (right): https://codereview.chromium.org/22875008/diff/16001/gm/canvasstate.cpp#newcode12 gm/canvasstate.cpp:12: #include ...
7 years, 4 months ago (2013-08-13 12:12:31 UTC) #3
robertphillips
Also, could you enhance the save comment in SkCanvas to include something like: @param flags ...
7 years, 4 months ago (2013-08-13 12:36:28 UTC) #4
robertphillips
Note: the drawFilter is always pushed and popped.
7 years, 4 months ago (2013-08-13 12:41:08 UTC) #5
djsollen
I think this addresses all your comments. https://codereview.chromium.org/22875008/diff/16001/gm/canvasstate.cpp File gm/canvasstate.cpp (right): https://codereview.chromium.org/22875008/diff/16001/gm/canvasstate.cpp#newcode12 gm/canvasstate.cpp:12: #include "SkRect.h" ...
7 years, 4 months ago (2013-08-13 13:24:45 UTC) #6
robertphillips
nits + a question https://codereview.chromium.org/22875008/diff/22001/gm/canvasstate.cpp File gm/canvasstate.cpp (right): https://codereview.chromium.org/22875008/diff/22001/gm/canvasstate.cpp#newcode62 gm/canvasstate.cpp:62: virtual SkISize onISize() SK_OVERRIDE { ...
7 years, 4 months ago (2013-08-13 13:45:55 UTC) #7
djsollen
I think the latest patch should be good for review.
7 years, 4 months ago (2013-08-13 13:53:05 UTC) #8
mtklein
lgtm with some nits of my own https://codereview.chromium.org/22875008/diff/31001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/22875008/diff/31001/src/core/SkPictureRecord.cpp#newcode153 src/core/SkPictureRecord.cpp:153: SkASSERT(kSaveSize == ...
7 years, 4 months ago (2013-08-13 13:57:53 UTC) #9
djsollen
7 years, 4 months ago (2013-08-13 14:26:51 UTC) #10
reed1
lgtm
7 years, 4 months ago (2013-08-13 14:28:00 UTC) #11
djsollen
Committed patchset #7 manually as r10689.
7 years, 4 months ago (2013-08-13 14:29:16 UTC) #12
robertphillips
https://codereview.chromium.org/22875008/diff/31001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/22875008/diff/31001/src/core/SkPictureRecord.cpp#newcode153 src/core/SkPictureRecord.cpp:153: SkASSERT(kSaveSize == size); Mainly for solidarity with kSaveLayerNoBoundsSize and ...
7 years, 4 months ago (2013-08-13 14:33:03 UTC) #13
mtklein
7 years, 4 months ago (2013-08-13 14:40:47 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/22875008/diff/31001/src/core/SkPictureRecord.cpp
File src/core/SkPictureRecord.cpp (right):

https://codereview.chromium.org/22875008/diff/31001/src/core/SkPictureRecord....
src/core/SkPictureRecord.cpp:489: if (SkCanvas::kMatrixClip_SaveFlag !=
(SkCanvas::kMatrixClip_SaveFlag & saveFlag)) {
On 2013/08/13 14:33:03, robertphillips wrote:
> Unfortunately there are several other save flags that need to be filtered out.

Either way, aren't we filtering out anything which is not kMatrixClip?

Powered by Google App Engine
This is Rietveld 408576698