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

Issue 6359045: Merge texture & render target pixel refs (Closed)

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

Description

Minor refactoring

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed code review issues #

Patch Set 3 : Addressed code review issues (removed a virtual call) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -126 lines) Patch
M include/gpu/SkGrTexturePixelRef.h View 1 2 chunks +10 lines, -37 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/SkGrTexturePixelRef.cpp View 1 2 2 chunks +56 lines, -85 lines 0 comments Download

Messages

Total messages: 6
robertphillips
http://codereview.appspot.com/6359045/diff/1/include/gpu/SkGrTexturePixelRef.h File include/gpu/SkGrTexturePixelRef.h (right): http://codereview.appspot.com/6359045/diff/1/include/gpu/SkGrTexturePixelRef.h#newcode10 include/gpu/SkGrTexturePixelRef.h:10: I will rename the file (and update the .gyp ...
12 years, 3 months ago (2012-06-28 18:48:38 UTC) #1
bsalomon
http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp File src/gpu/SkGrTexturePixelRef.cpp (right): http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp#newcode64 src/gpu/SkGrTexturePixelRef.cpp:64: desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit; Digression: This is a ...
12 years, 3 months ago (2012-06-28 19:16:17 UTC) #2
bsalomon
I meant to also say LGTM. On Thu, Jun 28, 2012 at 3:16 PM, <bsalomon@google.com> ...
12 years, 3 months ago (2012-06-28 19:39:51 UTC) #3
robertphillips
http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp File src/gpu/SkGrTexturePixelRef.cpp (right): http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp#newcode64 src/gpu/SkGrTexturePixelRef.cpp:64: desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit; It is pretty weird ...
12 years, 3 months ago (2012-06-28 19:49:47 UTC) #4
bsalomon
http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp File src/gpu/SkGrTexturePixelRef.cpp (right): http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp#newcode64 src/gpu/SkGrTexturePixelRef.cpp:64: desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit; On 2012/06/28 19:49:47, robertphillips ...
12 years, 3 months ago (2012-06-28 19:54:15 UTC) #5
robertphillips
12 years, 3 months ago (2012-06-28 20:03:03 UTC) #6
committed as r4396

http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp
File src/gpu/SkGrTexturePixelRef.cpp (right):

http://codereview.appspot.com/6359045/diff/1/src/gpu/SkGrTexturePixelRef.cpp#...
src/gpu/SkGrTexturePixelRef.cpp:81: fSurface = surface;
On 2012/06/28 19:54:16, bsalomon wrote:
> On 2012/06/28 19:49:47, robertphillips wrote:
> > First part - Done.
> > 
> > Second part - this was just something easy to do during the IO9 keynote. I
> think
> > the GpuDevice refactoring would be a good next step. Even with that change I
> > think we would still want to do this here.
> 
> Let's not call the virtual twice:
> 
> fSurface = surface->asTexture();
> if (!fSurface) {
>    fSurface = surface;
> }

Done.
Sign in to reply to this message.

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