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

Issue 2203453002: Sketch SkPictureRecorder::optimizeFor(GrContext*). (Closed)

Created:
4 years, 4 months ago by mtklein_C
Modified:
4 years, 4 months ago
Reviewers:
djsollen, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Sketch SkPictureRecorder::optimizeFor(GrContext*). I'm open to API suggestions. We can pass this in finishAs(), up front, whatever. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2203453002 Committed: https://skia.googlesource.com/skia/+/1bb5fecbea494d77d7d5633522be1cdc76d043ae

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : enough for demo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -31 lines) Patch
M include/core/SkPictureRecorder.h View 3 chunks +6 lines, -0 lines 0 comments Download
M include/private/SkRecords.h View 6 chunks +24 lines, -23 lines 0 comments Download
M src/core/SkPictureCommon.h View 1 chunk +2 lines, -8 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 2 4 chunks +51 lines, -0 lines 1 comment Download

Messages

Total messages: 18 (11 generated)
mtklein_C
4 years, 4 months ago (2016-08-01 17:57:26 UTC) #4
reed1
lgtm
4 years, 4 months ago (2016-08-01 18:00:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2203453002/40001
4 years, 4 months ago (2016-08-01 20:16:53 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/1bb5fecbea494d77d7d5633522be1cdc76d043ae
4 years, 4 months ago (2016-08-01 20:17:50 UTC) #15
djsollen
https://codereview.chromium.org/2203453002/diff/40001/src/core/SkPictureRecorder.cpp File src/core/SkPictureRecorder.cpp (right): https://codereview.chromium.org/2203453002/diff/40001/src/core/SkPictureRecorder.cpp#newcode64 src/core/SkPictureRecorder.cpp:64: for (int i = 0; ctx && i < ...
4 years, 4 months ago (2016-08-02 12:37:56 UTC) #16
mtklein
On 2016/08/02 12:37:56, djsollen wrote: > https://codereview.chromium.org/2203453002/diff/40001/src/core/SkPictureRecorder.cpp > File src/core/SkPictureRecorder.cpp (right): > > https://codereview.chromium.org/2203453002/diff/40001/src/core/SkPictureRecorder.cpp#newcode64 > ...
4 years, 4 months ago (2016-08-02 13:05:15 UTC) #17
djsollen
4 years, 4 months ago (2016-08-02 14:28:13 UTC) #18
Message was sent while issue was closed.
On 2016/08/02 13:05:15, mtklein wrote:
> On 2016/08/02 12:37:56, djsollen wrote:
> >
>
https://codereview.chromium.org/2203453002/diff/40001/src/core/SkPictureRecor...
> > File src/core/SkPictureRecorder.cpp (right):
> > 
> >
>
https://codereview.chromium.org/2203453002/diff/40001/src/core/SkPictureRecor...
> > src/core/SkPictureRecorder.cpp:64: for (int i = 0; ctx && i <
record->count();
> > i++) {
> > don't you want to avoid this loop if ctx == nullptr?
> 
> Yep.  Read it again?  Too subtle?

I just glanced at the for loop and didn't notice the double duty it was doing
until you pointed it out.

Powered by Google App Engine
This is Rietveld 408576698