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

Issue 1181913003: add SkCanvas::drawAtlas (Closed)

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

Description

Patch Set 1 #

Total comments: 21

Patch Set 2 : #

Patch Set 3 : add virtuals for device and picture #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : add gm and combining-mode parameter #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : fix warning #

Patch Set 10 : impl serialization #

Patch Set 11 : fix another warning #

Total comments: 35

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : fix warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+732 lines, -8 lines) Patch
A gm/drawatlas.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +103 lines, -0 lines 0 comments Download
M gm/spritebitmap.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -3 lines 0 comments Download
M gyp/SampleApp.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +30 lines, -0 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M include/core/SkMatrix.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
A include/core/SkRSXform.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A samplecode/SampleAtlas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +234 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 2 chunks +31 lines, -0 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 6 7 3 chunks +33 lines, -0 lines 0 comments Download
M src/core/SkMatrix.cpp View 1 2 3 4 5 6 3 chunks +29 lines, -0 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +38 lines, -0 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M src/core/SkRecorder.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M src/core/SkRecords.h View 1 2 3 4 5 5 chunks +21 lines, -0 lines 0 comments Download
M src/pipe/SkGPipePriv.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M src/pipe/SkGPipeRead.cpp View 1 2 3 4 5 6 7 3 chunks +30 lines, -1 line 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +45 lines, -0 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 5 6 7 3 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 49 (20 generated)
reed1
WIP -- mostly api functionality for now
5 years, 6 months ago (2015-06-15 15:22:54 UTC) #2
bsalomon
https://codereview.chromium.org/1181913003/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/1181913003/diff/1/include/core/SkCanvas.h#newcode1030 include/core/SkCanvas.h:1030: void drawAtlas(const SkImage* atlas, const SkRSXform[], const SkRect tex[], ...
5 years, 6 months ago (2015-06-15 15:44:15 UTC) #3
jvanverth1
Adding viktorl@. (Viktor, this is a preliminary pass at a sprite interface in Skia.)
5 years, 6 months ago (2015-06-15 15:51:19 UTC) #5
robertphillips
https://codereview.chromium.org/1181913003/diff/1/samplecode/SampleAtlas.cpp File samplecode/SampleAtlas.cpp (right): https://codereview.chromium.org/1181913003/diff/1/samplecode/SampleAtlas.cpp#newcode18 samplecode/SampleAtlas.cpp:18: static SkImage* make_atlas() { defined kAtlasSize as 512 somewhere ...
5 years, 6 months ago (2015-06-15 16:12:55 UTC) #6
reed1
https://codereview.chromium.org/1181913003/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/1181913003/diff/1/include/core/SkCanvas.h#newcode1030 include/core/SkCanvas.h:1030: void drawAtlas(const SkImage* atlas, const SkRSXform[], const SkRect tex[], ...
5 years, 6 months ago (2015-06-15 18:52:33 UTC) #7
reed1
5 years, 6 months ago (2015-06-15 19:56:04 UTC) #9
mtklein
Picture stuff LG, just a couple small suggestions. https://codereview.chromium.org/1181913003/diff/40001/include/core/SkRSXform.h File include/core/SkRSXform.h (right): https://codereview.chromium.org/1181913003/diff/40001/include/core/SkRSXform.h#newcode35 include/core/SkRSXform.h:35: void ...
5 years, 6 months ago (2015-06-15 20:45:40 UTC) #10
mtklein
https://codereview.chromium.org/1181913003/diff/40001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/1181913003/diff/40001/src/core/SkCanvas.cpp#newcode2485 src/core/SkCanvas.cpp:2485: void SkCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect ...
5 years, 6 months ago (2015-06-15 20:55:18 UTC) #11
reed1
https://codereview.chromium.org/1181913003/diff/40001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/1181913003/diff/40001/src/core/SkCanvas.cpp#newcode2485 src/core/SkCanvas.cpp:2485: void SkCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect ...
5 years, 6 months ago (2015-06-15 20:59:18 UTC) #12
reed1
ptal -- have done some optimization passes for gpu, but will need to land and ...
5 years, 6 months ago (2015-06-24 02:34:09 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/140001
5 years, 6 months ago (2015-06-24 02:34:22 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/160001
5 years, 6 months ago (2015-06-24 02:50:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/160001
5 years, 6 months ago (2015-06-24 02:53:34 UTC) #21
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 6 months ago (2015-06-24 02:53:35 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/200001
5 years, 6 months ago (2015-06-24 03:31:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/200001
5 years, 6 months ago (2015-06-24 03:39:12 UTC) #28
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 6 months ago (2015-06-24 08:53:05 UTC) #30
robertphillips
lgtm + nits & dox requests https://codereview.chromium.org/1181913003/diff/200001/gm/spritebitmap.cpp File gm/spritebitmap.cpp (right): https://codereview.chromium.org/1181913003/diff/200001/gm/spritebitmap.cpp#newcode101 gm/spritebitmap.cpp:101: should this go ...
5 years, 6 months ago (2015-06-24 15:11:02 UTC) #31
reed1
https://codereview.chromium.org/1181913003/diff/200001/gm/spritebitmap.cpp File gm/spritebitmap.cpp (right): https://codereview.chromium.org/1181913003/diff/200001/gm/spritebitmap.cpp#newcode101 gm/spritebitmap.cpp:101: On 2015/06/24 15:11:02, robertphillips wrote: > should this go ...
5 years, 6 months ago (2015-06-24 16:17:49 UTC) #32
robertphillips
https://codereview.chromium.org/1181913003/diff/200001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/1181913003/diff/200001/src/core/SkCanvas.cpp#newcode2466 src/core/SkCanvas.cpp:2466: const SkRect* cull, const SkPaint* paint) { On 2015/06/24 ...
5 years, 6 months ago (2015-06-24 16:26:26 UTC) #33
reed1
On 2015/06/24 16:26:26, robertphillips wrote: > https://codereview.chromium.org/1181913003/diff/200001/src/core/SkCanvas.cpp > File src/core/SkCanvas.cpp (right): > > https://codereview.chromium.org/1181913003/diff/200001/src/core/SkCanvas.cpp#newcode2466 > ...
5 years, 6 months ago (2015-06-24 16:30:53 UTC) #34
scroggo
pipe code lgtm https://codereview.chromium.org/1181913003/diff/200001/src/pipe/SkGPipeWrite.cpp File src/pipe/SkGPipeWrite.cpp (right): https://codereview.chromium.org/1181913003/diff/200001/src/pipe/SkGPipeWrite.cpp#newcode1103 src/pipe/SkGPipeWrite.cpp:1103: const SkImage*, const SkRSXform[], const SkRect[], ...
5 years, 6 months ago (2015-06-24 17:00:21 UTC) #35
reed1
https://codereview.chromium.org/1181913003/diff/200001/samplecode/SampleAtlas.cpp File samplecode/SampleAtlas.cpp (right): https://codereview.chromium.org/1181913003/diff/200001/samplecode/SampleAtlas.cpp#newcode125 samplecode/SampleAtlas.cpp:125: const SkScalar half = 8; On 2015/06/24 15:11:02, robertphillips ...
5 years, 6 months ago (2015-06-24 17:02:42 UTC) #36
reed1
https://codereview.chromium.org/1181913003/diff/200001/src/pipe/SkGPipeWrite.cpp File src/pipe/SkGPipeWrite.cpp (right): https://codereview.chromium.org/1181913003/diff/200001/src/pipe/SkGPipeWrite.cpp#newcode1103 src/pipe/SkGPipeWrite.cpp:1103: const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], On ...
5 years, 6 months ago (2015-06-24 17:04:30 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/260001
5 years, 6 months ago (2015-06-24 17:05:02 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/280001
5 years, 6 months ago (2015-06-24 17:12:06 UTC) #44
mtklein
On 2015/06/24 16:30:53, reed1 wrote: > On 2015/06/24 16:26:26, robertphillips wrote: > > https://codereview.chromium.org/1181913003/diff/200001/src/core/SkCanvas.cpp > ...
5 years, 6 months ago (2015-06-24 17:22:28 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181913003/280001
5 years, 6 months ago (2015-06-24 17:28:22 UTC) #48
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 17:29:24 UTC) #49
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://skia.googlesource.com/skia/+/71c3c760a83123ee0b3127b8c65c6394ce541c50

Powered by Google App Engine
This is Rietveld 408576698