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

Issue 233673002: Create SkLayerRasterizer w/o destroying Builder. (Closed)

Created:
6 years, 8 months ago by scroggo
Modified:
6 years, 8 months ago
Reviewers:
Dominik Grewe, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Create SkLayerRasterizer w/o destroying Builder. Add a new method to SkLayerRasterizer::Builder that creates a new SkLayerRasterizer without destroying the Builder. Necessary to continue to support Android's API. Also fix a bug where creating a Builder and never calling detachRasterizer results in not calling the destructor for any SkPaints in the Builder. Add tests. BUG=b/13729784 Committed: http://code.google.com/p/skia/source/detail?r=14139

Patch Set 1 #

Patch Set 2 : Fix a typo #

Total comments: 2

Patch Set 3 : Better comments. New function is now const, and has a better name. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -6 lines) Patch
M gyp/tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M include/effects/SkLayerRasterizer.h View 1 2 2 chunks +19 lines, -1 line 2 comments Download
M src/effects/SkLayerRasterizer.cpp View 1 2 3 chunks +29 lines, -5 lines 0 comments Download
A tests/LayerRasterizerTest.cpp View 1 2 1 chunk +138 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scroggo
6 years, 8 months ago (2014-04-10 19:29:32 UTC) #1
reed1
https://codereview.chromium.org/233673002/diff/20001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/233673002/diff/20001/include/effects/SkLayerRasterizer.h#newcode48 include/effects/SkLayerRasterizer.h:48: * *may* be used after calling this function. Builder ...
6 years, 8 months ago (2014-04-10 19:53:03 UTC) #2
scroggo
https://codereview.chromium.org/233673002/diff/20001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/233673002/diff/20001/include/effects/SkLayerRasterizer.h#newcode48 include/effects/SkLayerRasterizer.h:48: * *may* be used after calling this function. On ...
6 years, 8 months ago (2014-04-10 20:14:23 UTC) #3
reed1
lgtm https://codereview.chromium.org/233673002/diff/40001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/233673002/diff/40001/include/effects/SkLayerRasterizer.h#newcode60 include/effects/SkLayerRasterizer.h:60: SkLayerRasterizer* snapshotRasterizer() const; can this guy be const? ...
6 years, 8 months ago (2014-04-10 20:16:42 UTC) #4
scroggo
https://codereview.chromium.org/233673002/diff/40001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/233673002/diff/40001/include/effects/SkLayerRasterizer.h#newcode60 include/effects/SkLayerRasterizer.h:60: SkLayerRasterizer* snapshotRasterizer() const; On 2014/04/10 20:16:42, reed1 wrote: > ...
6 years, 8 months ago (2014-04-10 20:21:37 UTC) #5
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 8 months ago (2014-04-10 20:21:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/233673002/40001
6 years, 8 months ago (2014-04-10 20:21:52 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 20:42:56 UTC) #8
Message was sent while issue was closed.
Change committed as 14139

Powered by Google App Engine
This is Rietveld 408576698