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

Issue 5307077: Lazy allocate pixels in SkCanvas::readPixels (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by bsalomon
Modified:
12 years, 6 months ago
Reviewers:
reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : cleanup, svn add test cpp file #

Total comments: 2

Patch Set 3 : updates #

Patch Set 4 : linewrap in gmmain.cpp #

Total comments: 3

Patch Set 5 : Fixed up comment, removed whole-canvas version #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -108 lines) Patch
M gm/gmmain.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M gyp/tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkBitmap.h View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 1 chunk +36 lines, -5 lines 0 comments Download
M include/core/SkDevice.h View 1 2 2 chunks +27 lines, -4 lines 1 comment Download
M include/device/xps/SkXPSDevice.h View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M include/gpu/GrGLDefines.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 1 chunk +17 lines, -9 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 1 chunk +55 lines, -12 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/gpu/GrGpuGL.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/gpu/GrGpuGL.cpp View 1 2 2 chunks +56 lines, -16 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 1 chunk +12 lines, -29 lines 0 comments Download
A tests/ReadPixelsTest.cpp View 1 2 3 4 1 chunk +260 lines, -0 lines 0 comments Download

Messages

Total messages: 7
bsalomon
I'd like to remove the public readPixels from SkDevice but it is called directly from ...
12 years, 6 months ago (2011-10-31 20:51:44 UTC) #1
bsalomon
New version uses x,y,bitmap->width(),bitmap->height() to define the src rectangle. Also, I reimplemented the old API ...
12 years, 6 months ago (2011-11-02 14:27:07 UTC) #2
reed1
http://codereview.appspot.com/5307077/diff/2001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): http://codereview.appspot.com/5307077/diff/2001/include/core/SkCanvas.h#newcode110 include/core/SkCanvas.h:110: * not overwritten. += If the bitmap's config is ...
12 years, 6 months ago (2011-11-02 17:41:02 UTC) #3
bsalomon
Updated comment and removed the whole-canvas version. (Bracing for comment about "non-raster")
12 years, 6 months ago (2011-11-02 18:01:53 UTC) #4
bsalomon
On 2011/11/02 18:01:53, bsalomon wrote: > Updated comment and removed the whole-canvas version. (Bracing for ...
12 years, 6 months ago (2011-11-02 19:27:52 UTC) #5
bsalomon
I went ahead and landed this since it was blocking me. We can make improvements ...
12 years, 6 months ago (2011-11-02 19:35:22 UTC) #6
reed1
12 years, 6 months ago (2011-11-02 19:43:21 UTC) #7
http://codereview.appspot.com/5307077/diff/14001/include/core/SkDevice.h
File include/core/SkDevice.h (right):

http://codereview.appspot.com/5307077/diff/14001/include/core/SkDevice.h#newc...
include/core/SkDevice.h:279: */
if its const, lets make the bitmap be a ref

const SkBitmap&
Sign in to reply to this message.

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