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

Issue 789673007: add readPixels to SkImage (Closed)

Created:
6 years ago by reed2
Modified:
6 years ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org, tfarina
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

add readPixels to SkImage remove "helper" readPixels from surface -- not well defined regarding the colortype of the result. abandoning in favor of https://codereview.chromium.org/793723002 BUG=skia:3216 R=robertphillips@google.com

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -132 lines) Patch
M include/core/SkImage.h View 2 chunks +21 lines, -23 lines 0 comments Download
M include/core/SkSurface.h View 2 chunks +3 lines, -11 lines 0 comments Download
M src/core/SkCanvas.cpp View 2 chunks +6 lines, -32 lines 0 comments Download
M src/core/SkImageInfo.cpp View 1 chunk +44 lines, -0 lines 1 comment Download
M src/image/SkImage.cpp View 3 chunks +15 lines, -43 lines 0 comments Download
M src/image/SkImage_Base.h View 1 chunk +4 lines, -3 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 2 chunks +4 lines, -11 lines 0 comments Download
A src/image/SkReadPixelsRec.h View 1 chunk +31 lines, -0 lines 2 comments Download
M src/image/SkSurface.cpp View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
reed2
6 years ago (2014-12-10 04:20:53 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789673007/1
6 years ago (2014-12-10 04:21:02 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years ago (2014-12-10 04:21:04 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
6 years ago (2014-12-10 10:21:03 UTC) #7
tfarina
https://codereview.chromium.org/789673007/diff/1/src/core/SkImageInfo.cpp File src/core/SkImageInfo.cpp (right): https://codereview.chromium.org/789673007/diff/1/src/core/SkImageInfo.cpp#newcode84 src/core/SkImageInfo.cpp:84: bool SkReadPixelsRec::trim(int srcWidth, int srcHeight) { Hum, forgive my ...
6 years ago (2014-12-10 14:19:53 UTC) #8
reed1
On 2014/12/10 14:19:53, tfarina wrote: > https://codereview.chromium.org/789673007/diff/1/src/core/SkImageInfo.cpp > File src/core/SkImageInfo.cpp (right): > > https://codereview.chromium.org/789673007/diff/1/src/core/SkImageInfo.cpp#newcode84 > ...
6 years ago (2014-12-10 15:21:58 UTC) #9
robertphillips
lgtm + dox suggestion https://codereview.chromium.org/789673007/diff/1/src/image/SkReadPixelsRec.h File src/image/SkReadPixelsRec.h (right): https://codereview.chromium.org/789673007/diff/1/src/image/SkReadPixelsRec.h#newcode12 src/image/SkReadPixelsRec.h:12: // A helper class to ...
6 years ago (2014-12-10 15:26:57 UTC) #10
reed1
6 years ago (2014-12-10 15:35:20 UTC) #12
https://codereview.chromium.org/789673007/diff/1/src/image/SkReadPixelsRec.h
File src/image/SkReadPixelsRec.h (right):

https://codereview.chromium.org/789673007/diff/1/src/image/SkReadPixelsRec.h#...
src/image/SkReadPixelsRec.h:12: 
On 2014/12/10 15:26:57, robertphillips wrote:
> // A helper class to abstract away some of the computation involved when
> converting readPixels' parameters to actual pixels
> 
> ?

Done.

Powered by Google App Engine
This is Rietveld 408576698