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

Issue 155763004: add ways to peer into an image to get its pixels (Closed)

Created:
6 years, 10 months ago by reed1
Modified:
6 years, 10 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

add ways to peer into an image to get its pixels BUG=skia: R=bsalomon@google.com, scroggo@google.com Committed: https://code.google.com/p/skia/source/detail?r=13339

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 3

Patch Set 5 : hide readPixels() call for now (needs more thought and a use-case) #

Patch Set 6 : correct boolean check on supports #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -17 lines) Patch
M include/core/SkImage.h View 1 2 3 4 2 chunks +34 lines, -0 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 2 chunks +87 lines, -0 lines 0 comments Download
M src/image/SkImage_Base.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 2 3 4 5 6 4 chunks +40 lines, -6 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 2 3 4 5 6 5 chunks +91 lines, -11 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
reed1
Consider image backends: cpu, gpu, encoded-bitmap, picture, (other?)
6 years, 10 months ago (2014-02-05 17:06:48 UTC) #1
reed1
Related: is there real value in offering... SkImage* SkImage::newSubset(const SkIRect& subset) const; Where the new ...
6 years, 10 months ago (2014-02-05 17:08:02 UTC) #2
bsalomon
https://codereview.chromium.org/155763004/diff/1/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/155763004/diff/1/include/core/SkImage.h#newcode87 include/core/SkImage.h:87: bool peekPixels(SkBitmap* bitmap) const; Maybe this should return a ...
6 years, 10 months ago (2014-02-05 17:13:36 UTC) #3
scroggo
On 2014/02/05 17:08:02, reed1 wrote: > Related: is there real value in offering... > > ...
6 years, 10 months ago (2014-02-05 17:16:06 UTC) #4
scroggo
https://codereview.chromium.org/155763004/diff/1/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/155763004/diff/1/include/core/SkImage.h#newcode87 include/core/SkImage.h:87: bool peekPixels(SkBitmap* bitmap) const; On 2014/02/05 17:13:37, bsalomon wrote: ...
6 years, 10 months ago (2014-02-05 17:16:43 UTC) #5
reed1
https://codereview.chromium.org/155763004/diff/1/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/155763004/diff/1/include/core/SkImage.h#newcode87 include/core/SkImage.h:87: bool peekPixels(SkBitmap* bitmap) const; On 2014/02/05 17:13:37, bsalomon wrote: ...
6 years, 10 months ago (2014-02-05 17:47:51 UTC) #6
reed1
revised signature for peekPixels uploaded
6 years, 10 months ago (2014-02-05 18:13:05 UTC) #7
scroggo
On 2014/02/05 18:13:05, reed1 wrote: > revised signature for peekPixels uploaded New signature looks fine ...
6 years, 10 months ago (2014-02-05 18:16:16 UTC) #8
bsalomon
On 2014/02/05 17:16:06, scroggo wrote: > On 2014/02/05 17:08:02, reed1 wrote: > > Related: is ...
6 years, 10 months ago (2014-02-05 18:26:47 UTC) #9
reed1
BTW -- in readPixels(), supporting pre-allocated bitmap is hard. Always allocating the answer for them ...
6 years, 10 months ago (2014-02-05 21:00:55 UTC) #10
scroggo
On 2014/02/05 21:00:55, reed1 wrote: > BTW -- in readPixels(), supporting pre-allocated bitmap is hard. ...
6 years, 10 months ago (2014-02-05 21:04:40 UTC) #11
bsalomon
On 2014/02/05 21:04:40, scroggo wrote: > On 2014/02/05 21:00:55, reed1 wrote: > > BTW -- ...
6 years, 10 months ago (2014-02-05 21:19:03 UTC) #12
reed1
ptal
6 years, 10 months ago (2014-02-05 21:23:58 UTC) #13
bsalomon
https://codereview.chromium.org/155763004/diff/210001/src/image/SkImage.cpp File src/image/SkImage.cpp (right): https://codereview.chromium.org/155763004/diff/210001/src/image/SkImage.cpp#newcode63 src/image/SkImage.cpp:63: bounds.fRight = SkMin32(bounds.fRight, bitmap->width()); does this mean that for ...
6 years, 10 months ago (2014-02-05 21:36:20 UTC) #14
scroggo
https://codereview.chromium.org/155763004/diff/210001/src/image/SkImage.cpp File src/image/SkImage.cpp (right): https://codereview.chromium.org/155763004/diff/210001/src/image/SkImage.cpp#newcode112 src/image/SkImage.cpp:112: if (canvas_supports(info)) { Should this be if(!canvas_supports(info)) ? https://codereview.chromium.org/155763004/diff/210001/src/image/SkImage.cpp#newcode116 ...
6 years, 10 months ago (2014-02-05 21:55:27 UTC) #15
reed1
ptal -- hiding readPixels() for now. Have a known client for peekPixels...
6 years, 10 months ago (2014-02-05 22:06:27 UTC) #16
scroggo
On 2014/02/05 22:06:27, reed1 wrote: > ptal -- hiding readPixels() for now. Have a known ...
6 years, 10 months ago (2014-02-05 22:27:23 UTC) #17
reed1
On 2014/02/05 22:27:23, scroggo wrote: > On 2014/02/05 22:06:27, reed1 wrote: > > ptal -- ...
6 years, 10 months ago (2014-02-06 13:56:16 UTC) #18
reed1
On 2014/02/06 13:56:16, reed1 wrote: > On 2014/02/05 22:27:23, scroggo wrote: > > On 2014/02/05 ...
6 years, 10 months ago (2014-02-06 13:56:44 UTC) #19
scroggo
On 2014/02/06 13:56:44, reed1 wrote: > On 2014/02/06 13:56:16, reed1 wrote: > > On 2014/02/05 ...
6 years, 10 months ago (2014-02-06 13:59:57 UTC) #20
reed1
6 years, 10 months ago (2014-02-06 14:12:02 UTC) #21
Message was sent while issue was closed.
Committed patchset #7 manually as r13339 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698