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

Issue 821083002: add newImage API (Closed)

Created:
6 years ago by reed1
Modified:
5 years, 11 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

add newImage API BUG=skia:3277 related bug: skbug.com/3276 Committed: https://skia.googlesource.com/skia/+/f803da12cff1d9b6148fea319220351efebfd1e0

Patch Set 1 #

Patch Set 2 : initial draft of API #

Total comments: 2

Patch Set 3 : tighten constraint on valid subset parameter #

Total comments: 3

Patch Set 4 : rebase #

Patch Set 5 : default impl #

Patch Set 6 : add gm #

Patch Set 7 : add SkFilterQuality option #

Total comments: 12

Patch Set 8 : #

Patch Set 9 : initial LEGACY flag for new enum #

Patch Set 10 : update dox for unpremul->premul #

Patch Set 11 : add gm #

Total comments: 3

Patch Set 12 : #

Total comments: 22

Patch Set 13 : updates to gms #

Patch Set 14 : fix warning #

Patch Set 15 : include SkRandom.h #

Total comments: 11

Patch Set 16 : reinforce non-zero requirement #

Patch Set 17 : check when subset == bounds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -39 lines) Patch
M gm/drawbitmaprect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +81 lines, -28 lines 0 comments Download
M gm/image.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +95 lines, -2 lines 0 comments Download
A include/core/SkFilterQuality.h View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M include/core/SkImage.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +22 lines, -0 lines 0 comments Download
M include/core/SkPaint.h View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -7 lines 0 comments Download
M src/core/SkPaint.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +53 lines, -0 lines 0 comments Download
M src/image/SkImage_Base.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (15 generated)
reed1
6 years ago (2014-12-22 21:05:36 UTC) #2
bsalomon
https://codereview.chromium.org/821083002/diff/20001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/821083002/diff/20001/include/core/SkImage.h#newcode138 include/core/SkImage.h:138: SkImage* newImage(int newWidth, int newHeight, const SkIRect* subset = ...
6 years ago (2014-12-22 21:31:06 UTC) #3
reed1
https://codereview.chromium.org/821083002/diff/20001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/821083002/diff/20001/include/core/SkImage.h#newcode138 include/core/SkImage.h:138: SkImage* newImage(int newWidth, int newHeight, const SkIRect* subset = ...
6 years ago (2014-12-22 21:39:48 UTC) #4
scroggo
https://codereview.chromium.org/821083002/diff/40001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/821083002/diff/40001/include/core/SkImage.h#newcode137 include/core/SkImage.h:137: SkImage* newImage(int newWidth, int newHeight, const SkIRect* subset = ...
6 years ago (2014-12-22 22:08:27 UTC) #5
reed2
Derek, Where is the investigation on annotating native allocations for the VM? https://codereview.chromium.org/821083002/diff/40001/include/core/SkImage.h File include/core/SkImage.h ...
5 years, 12 months ago (2014-12-24 19:47:26 UTC) #7
bsalomon
On 2014/12/22 21:39:48, reed1 wrote: > https://codereview.chromium.org/821083002/diff/20001/include/core/SkImage.h > File include/core/SkImage.h (right): > > https://codereview.chromium.org/821083002/diff/20001/include/core/SkImage.h#newcode138 > ...
5 years, 11 months ago (2014-12-29 14:19:57 UTC) #8
scroggo
https://codereview.chromium.org/821083002/diff/40001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/821083002/diff/40001/include/core/SkImage.h#newcode137 include/core/SkImage.h:137: SkImage* newImage(int newWidth, int newHeight, const SkIRect* subset = ...
5 years, 11 months ago (2014-12-30 11:04:41 UTC) #9
reed1
What to do about filter-quality when scaling? a. pick a quality b. take a parameter ...
5 years, 11 months ago (2014-12-31 21:41:35 UTC) #10
reed1
add SkFilterQuality parameter (defaults to none)
5 years, 11 months ago (2014-12-31 22:02:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821083002/120001
5 years, 11 months ago (2014-12-31 22:02:57 UTC) #13
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2014-12-31 22:02:58 UTC) #14
scroggo
https://codereview.chromium.org/821083002/diff/120001/include/core/SkFilterQuality.h File include/core/SkFilterQuality.h (right): https://codereview.chromium.org/821083002/diff/120001/include/core/SkFilterQuality.h#newcode13 include/core/SkFilterQuality.h:13: enum SkFilterQuality { Could you add a description of ...
5 years, 11 months ago (2015-01-05 16:15:33 UTC) #16
reed1
https://codereview.chromium.org/821083002/diff/120001/include/core/SkFilterQuality.h File include/core/SkFilterQuality.h (right): https://codereview.chromium.org/821083002/diff/120001/include/core/SkFilterQuality.h#newcode13 include/core/SkFilterQuality.h:13: enum SkFilterQuality { On 2015/01/05 16:15:33, scroggo wrote: > ...
5 years, 11 months ago (2015-01-05 21:58:14 UTC) #17
scroggo
https://codereview.chromium.org/821083002/diff/120001/include/core/SkPaint.h File include/core/SkPaint.h (right): https://codereview.chromium.org/821083002/diff/120001/include/core/SkPaint.h#newcode323 include/core/SkPaint.h:323: void setFilterQuality(SkFilterQuality quality) { On 2015/01/05 21:58:14, reed1 wrote: ...
5 years, 11 months ago (2015-01-05 22:12:02 UTC) #18
reed1
https://codereview.chromium.org/821083002/diff/120001/include/core/SkPaint.h File include/core/SkPaint.h (right): https://codereview.chromium.org/821083002/diff/120001/include/core/SkPaint.h#newcode323 include/core/SkPaint.h:323: void setFilterQuality(SkFilterQuality quality) { On 2015/01/05 22:12:02, scroggo wrote: ...
5 years, 11 months ago (2015-01-20 22:23:08 UTC) #19
reed1
On 2015/01/20 22:23:08, reed1 wrote: > https://codereview.chromium.org/821083002/diff/120001/include/core/SkPaint.h > File include/core/SkPaint.h (right): > > https://codereview.chromium.org/821083002/diff/120001/include/core/SkPaint.h#newcode323 > ...
5 years, 11 months ago (2015-01-20 22:24:32 UTC) #20
scroggo
On 2015/01/20 22:24:32, reed1 wrote: > On 2015/01/20 22:23:08, reed1 wrote: > > https://codereview.chromium.org/821083002/diff/120001/include/core/SkPaint.h > ...
5 years, 11 months ago (2015-01-20 22:28:14 UTC) #21
reed1
done. will add tests next.
5 years, 11 months ago (2015-01-20 22:53:53 UTC) #22
reed1
add gm. PTAL
5 years, 11 months ago (2015-01-21 21:05:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821083002/200001
5 years, 11 months ago (2015-01-21 21:18:36 UTC) #25
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-21 21:18:37 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/1671)
5 years, 11 months ago (2015-01-21 21:21:17 UTC) #28
scroggo
https://codereview.chromium.org/821083002/diff/200001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/821083002/diff/200001/gm/image.cpp#newcode221 gm/image.cpp:221: SkRandom rand; nit: Maybe we shouldn't use SkRandom in ...
5 years, 11 months ago (2015-01-21 22:24:58 UTC) #29
robertphillips
nits https://codereview.chromium.org/821083002/diff/220001/gm/drawbitmaprect.cpp File gm/drawbitmaprect.cpp (right): https://codereview.chromium.org/821083002/diff/220001/gm/drawbitmaprect.cpp#newcode131 gm/drawbitmaprect.cpp:131: static const int kBmpSize = 2048; onOnceBeforeDraw for ...
5 years, 11 months ago (2015-01-22 15:50:03 UTC) #30
reed1
https://codereview.chromium.org/821083002/diff/220001/gm/drawbitmaprect.cpp File gm/drawbitmaprect.cpp (right): https://codereview.chromium.org/821083002/diff/220001/gm/drawbitmaprect.cpp#newcode131 gm/drawbitmaprect.cpp:131: static const int kBmpSize = 2048; On 2015/01/22 15:50:02, ...
5 years, 11 months ago (2015-01-22 18:25:51 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821083002/240001
5 years, 11 months ago (2015-01-22 18:26:46 UTC) #33
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-22 18:26:47 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/1694)
5 years, 11 months ago (2015-01-22 18:28:35 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821083002/280001
5 years, 11 months ago (2015-01-22 19:39:03 UTC) #40
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-22 19:39:05 UTC) #41
scroggo
https://codereview.chromium.org/821083002/diff/280001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/821083002/diff/280001/gm/image.cpp#newcode213 gm/image.cpp:213: void drawIntoImage(SkCanvas* canvas) { Can all these functions be ...
5 years, 11 months ago (2015-01-22 20:05:14 UTC) #42
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-22 21:12:19 UTC) #43
reed1
https://codereview.chromium.org/821083002/diff/280001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/821083002/diff/280001/gm/image.cpp#newcode213 gm/image.cpp:213: void drawIntoImage(SkCanvas* canvas) { On 2015/01/22 20:05:14, scroggo wrote: ...
5 years, 11 months ago (2015-01-22 21:52:52 UTC) #45
reed1
https://codereview.chromium.org/821083002/diff/280001/src/image/SkImage.cpp File src/image/SkImage.cpp (right): https://codereview.chromium.org/821083002/diff/280001/src/image/SkImage.cpp#newcode99 src/image/SkImage.cpp:99: if (newWidth < 0 || newHeight < 0) { ...
5 years, 11 months ago (2015-01-22 21:58:24 UTC) #46
reed1
ptal
5 years, 11 months ago (2015-01-22 22:03:58 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821083002/310009
5 years, 11 months ago (2015-01-22 22:05:12 UTC) #49
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-22 22:05:13 UTC) #50
scroggo
LGTM
5 years, 11 months ago (2015-01-22 22:11:23 UTC) #51
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
5 years, 11 months ago (2015-01-22 22:23:34 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821083002/310009
5 years, 11 months ago (2015-01-23 13:57:51 UTC) #55
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 13:58:12 UTC) #56
Message was sent while issue was closed.
Committed patchset #17 (id:310009) as
https://skia.googlesource.com/skia/+/f803da12cff1d9b6148fea319220351efebfd1e0

Powered by Google App Engine
This is Rietveld 408576698