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

Issue 6813055: Fleshed out GPU portion of image/surface feature (Closed)

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

Description

This works in SampleApp but there is still some funkiness in GM proper. In GM the context doesn't exist when the raster backend is in use. For this reason the raster GM images don't contain the GPU column.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed initial code review issues #

Patch Set 3 : split out src\gpu changes & removed Validate call #

Total comments: 2

Patch Set 4 : cleaned up SkImage_Gpu ctor reffing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -127 lines) Patch
M gm/image.cpp View 1 2 3 chunks +41 lines, -3 lines 0 comments Download
M gyp/gpu.gypi View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M include/core/SkImage.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M src/image/SkImagePriv.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/image/SkImage_Base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 1 chunk +45 lines, -33 lines 0 comments Download
M src/image/SkSurface.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M src/image/SkSurface_Base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 2 chunks +71 lines, -84 lines 0 comments Download
M src/image/SkSurface_Picture.cpp View 1 2 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7
robertphillips
11 years, 8 months ago (2012-10-30 19:50:21 UTC) #1
reed1
https://codereview.appspot.com/6813055/diff/1/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.appspot.com/6813055/diff/1/include/core/SkImage.h#newcode18 include/core/SkImage.h:18: class GrContext; Do we need this guy now? https://codereview.appspot.com/6813055/diff/1/src/image/SkImage_Gpu.cpp ...
11 years, 8 months ago (2012-10-30 19:55:59 UTC) #2
robertphillips
https://codereview.appspot.com/6813055/diff/1/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.appspot.com/6813055/diff/1/include/core/SkImage.h#newcode18 include/core/SkImage.h:18: class GrContext; On 2012/10/30 19:55:59, reed1 wrote: > Do ...
11 years, 8 months ago (2012-10-30 20:03:38 UTC) #3
bsalomon
https://codereview.appspot.com/6813055/diff/1/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/6813055/diff/1/src/gpu/SkGpuDevice.cpp#newcode208 src/gpu/SkGpuDevice.cpp:208: int sampleCount) Not directly related to this CL, but ...
11 years, 8 months ago (2012-10-30 20:05:17 UTC) #4
robertphillips
https://codereview.appspot.com/6813055/diff/1/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/6813055/diff/1/src/gpu/SkGpuDevice.cpp#newcode208 src/gpu/SkGpuDevice.cpp:208: int sampleCount) Converted to TODO https://codereview.appspot.com/6813055/diff/1/src/image/SkSurface_Gpu.cpp File src/image/SkSurface_Gpu.cpp (right): ...
11 years, 8 months ago (2012-10-31 14:26:11 UTC) #5
bsalomon
LGTM https://codereview.appspot.com/6813055/diff/2003/src/image/SkImage_Gpu.cpp File src/image/SkImage_Gpu.cpp (right): https://codereview.appspot.com/6813055/diff/2003/src/image/SkImage_Gpu.cpp#newcode75 src/image/SkImage_Gpu.cpp:75: return SkNEW_ARGS(SkImage_Gpu, (texture)); Doesn't this mean that SkImage_Gpu() ...
11 years, 8 months ago (2012-10-31 14:31:35 UTC) #6
robertphillips
11 years, 8 months ago (2012-10-31 14:49:07 UTC) #7
Committed as r6214

https://codereview.appspot.com/6813055/diff/2003/src/image/SkImage_Gpu.cpp
File src/image/SkImage_Gpu.cpp (right):

https://codereview.appspot.com/6813055/diff/2003/src/image/SkImage_Gpu.cpp#ne...
src/image/SkImage_Gpu.cpp:75: return SkNEW_ARGS(SkImage_Gpu, (texture));
On 2012/10/31 14:31:36, bsalomon wrote:
> Doesn't this mean that SkImage_Gpu() never gets NULL (and doesnt need to
assign
> fTexture to NULL and then do a safe assign)?

Done.
Sign in to reply to this message.

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