Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(229)

Issue 6904072: Extend pixelref to receive the CTM, and to return a (new) width/height

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by reed1
Modified:
12 years, 4 months ago
Reviewers:
Alpha, Leon, nduca, DerekS, bsalomon
CC:
skia-review_googlegroups.com, enne
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Extend pixelref to receive the CTM, and to return a (new) width/height

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -102 lines) Patch
M include/core/SkBitmap.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -5 lines 0 comments Download
M include/core/SkMallocPixelRef.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -9 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M include/core/SkPixelRef.h View 1 2 3 4 5 6 7 8 9 7 chunks +62 lines, -18 lines 2 comments Download
A include/core/SkPixelRefInfo.h View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M include/gpu/SkGrPixelRef.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M include/images/SkImageRef.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +35 lines, -4 lines 0 comments Download
M src/core/SkMallocPixelRef.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +19 lines, -22 lines 0 comments Download
M src/core/SkPixelRef.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +42 lines, -10 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M src/gpu/SkGrPixelRef.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -6 lines 0 comments Download
M src/image/SkDataPixelRef.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M src/image/SkDataPixelRef.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -5 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M src/image/SkSurface_Raster.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M src/images/SkImageRef.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M src/ports/SkImageRef_ashmem.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M src/ports/SkImageRef_ashmem.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 19
reed1
prototype for extended api on pixelref. Lots more changes needed to our subclasses (and call ...
12 years, 5 months ago (2012-12-10 20:03:44 UTC) #1
Alpha
Question: How to handle a case where a pixelref is used for different scale? Will ...
12 years, 5 months ago (2012-12-10 20:10:16 UTC) #2
reed1
The matrix parameter is how I tell the pixelRef what scale I plan to use. ...
12 years, 5 months ago (2012-12-10 20:12:37 UTC) #3
Alpha
My question was, will OnLockPixels be called consecutively with different matrixes? e.g. OnLockPixels(.., matA); OnLockPixels(.., ...
12 years, 5 months ago (2012-12-10 20:16:44 UTC) #4
reed1
Ah! Good question. It sure seems that we'd want a different protocol if we needed ...
12 years, 5 months ago (2012-12-10 20:40:30 UTC) #5
Alpha
I think it's important for us to have some kind of API so we can ...
12 years, 5 months ago (2012-12-10 20:59:40 UTC) #6
reed1
12 years, 5 months ago (2012-12-11 15:30:21 UTC) #7
bsalomon
For the GPU it'd be nice if the pixel itself could determine the row bytes ...
12 years, 5 months ago (2012-12-11 16:32:03 UTC) #8
Leon
https://codereview.appspot.com/6904072/diff/12001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.appspot.com/6904072/diff/12001/include/core/SkBitmap.h#newcode674 include/core/SkBitmap.h:674: friend class SkPixelRef; I do not see SkPixelRef taking ...
12 years, 5 months ago (2012-12-11 17:08:02 UTC) #9
DerekS
https://codereview.appspot.com/6904072/diff/14001/src/ports/SkImageRef_ashmem.h File src/ports/SkImageRef_ashmem.h (right): https://codereview.appspot.com/6904072/diff/14001/src/ports/SkImageRef_ashmem.h#newcode35 src/ports/SkImageRef_ashmem.h:35: virtual void* onLockPixels(Info*, const SkMatrix*) SK_OVERRIDE; You need to ...
12 years, 5 months ago (2012-12-11 18:13:28 UTC) #10
reed1
https://codereview.appspot.com/6904072/diff/12001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.appspot.com/6904072/diff/12001/include/core/SkBitmap.h#newcode674 include/core/SkBitmap.h:674: friend class SkPixelRef; On 2012/12/11 17:08:02, scroggo-work wrote: > ...
12 years, 5 months ago (2012-12-11 18:21:23 UTC) #11
Leon
Overall lgtm https://codereview.appspot.com/6904072/diff/10002/include/core/SkPixelRef.h File include/core/SkPixelRef.h (right): https://codereview.appspot.com/6904072/diff/10002/include/core/SkPixelRef.h#newcode227 include/core/SkPixelRef.h:227: * The caller is always lockPixels(), and ...
12 years, 5 months ago (2012-12-11 18:44:20 UTC) #12
Leon
https://codereview.appspot.com/6904072/diff/10002/include/core/SkPixelRef.h File include/core/SkPixelRef.h (right): https://codereview.appspot.com/6904072/diff/10002/include/core/SkPixelRef.h#newcode227 include/core/SkPixelRef.h:227: * The caller is always lockPixels(), and it is ...
12 years, 5 months ago (2012-12-11 19:01:48 UTC) #13
Alpha
+nduca, enne who are interested in this
12 years, 5 months ago (2012-12-11 19:56:55 UTC) #14
Alpha
On 2012/12/11 19:56:55, Alpha wrote: > +nduca, enne who are interested in this lgtm by ...
12 years, 5 months ago (2012-12-11 21:28:44 UTC) #15
reed1
I have begun to try to actually call this new entry-point, and am running into ...
12 years, 5 months ago (2012-12-12 13:22:37 UTC) #16
reed1
patchset #8 -- rebaselined Next step is to actually call the api, and correctly handle ...
12 years, 5 months ago (2012-12-14 21:19:36 UTC) #17
nduca
https://codereview.appspot.com/6904072/diff/24001/include/core/SkPixelRef.h File include/core/SkPixelRef.h (right): https://codereview.appspot.com/6904072/diff/24001/include/core/SkPixelRef.h#newcode92 include/core/SkPixelRef.h:92: * was returned on the first call, which may ...
12 years, 4 months ago (2012-12-19 04:53:59 UTC) #18
nduca
12 years, 4 months ago (2012-12-19 05:13:09 UTC) #19
https://codereview.appspot.com/6904072/diff/24001/include/core/SkPixelRef.h
File include/core/SkPixelRef.h (right):

https://codereview.appspot.com/6904072/diff/24001/include/core/SkPixelRef.h#n...
include/core/SkPixelRef.h:97: void* lockPixels(Info* info, const SkMatrix* ctm =
NULL);
also, should this be another structure like
LockInfo {
SkMatrix ctm
}

That way if we decide in the future we want to pass down other state to it, say
the quality settings or filters etc [pulling something out of my ass], we could
without all the rolling issues that come from adding an arg?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b