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

Issue 2382893002: Add a src rect to drawImageLattice() API (Closed)

Created:
4 years, 2 months ago by msarett
Modified:
4 years, 2 months ago
Reviewers:
mtklein, djsollen, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add a src rect to drawImageLattice() API This will allow us to draw ninepatches directly from an asset texture without having to upload them individually. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2382893002 Committed: https://skia.googlesource.com/skia/+/71df2d7bc1bbc83ad4cf005f9027df4cb3b88a9b

Patch Set 1 #

Patch Set 2 : Fix win #

Total comments: 1

Patch Set 3 : Bounds rect is optional #

Patch Set 4 : Simplify impl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -72 lines) Patch
M gm/lattice.cpp View 1 2 4 chunks +37 lines, -13 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 2 chunks +18 lines, -10 lines 0 comments Download
M include/private/SkRecords.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 2 chunks +20 lines, -4 lines 0 comments Download
M src/core/SkDevice.cpp View 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkLatticeIter.h View 3 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkLatticeIter.cpp View 1 2 3 7 chunks +39 lines, -30 lines 0 comments Download
M src/core/SkLiteDL.cpp View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFCanvas.cpp View 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/pipe/SkPipeCanvas.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/pipe/SkPipeReader.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (21 generated)
msarett
Change is actually not that complex - just a lot of recording canvases to update.
4 years, 2 months ago (2016-09-29 20:45:56 UTC) #3
reed1
https://codereview.chromium.org/2382893002/diff/20001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2382893002/diff/20001/include/core/SkCanvas.h#newcode992 include/core/SkCanvas.h:992: // input SkImage. 1. could take a ptr to ...
4 years, 2 months ago (2016-09-29 21:11:38 UTC) #10
msarett
On 2016/09/29 21:11:38, reed1 wrote: > https://codereview.chromium.org/2382893002/diff/20001/include/core/SkCanvas.h > File include/core/SkCanvas.h (right): > > https://codereview.chromium.org/2382893002/diff/20001/include/core/SkCanvas.h#newcode992 > ...
4 years, 2 months ago (2016-09-29 21:18:59 UTC) #11
msarett
PS 2 improves the comments and makes the bounds rect optional.
4 years, 2 months ago (2016-09-29 22:37:13 UTC) #16
reed1
lgtm
4 years, 2 months ago (2016-09-30 18:25:57 UTC) #19
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/2382893002/60001
4 years, 2 months ago (2016-09-30 19:40:28 UTC) #26
reed1
lgtm
4 years, 2 months ago (2016-09-30 19:41:38 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 19:41:45 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/71df2d7bc1bbc83ad4cf005f9027df4cb3b88a9b

Powered by Google App Engine
This is Rietveld 408576698