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

Issue 6299081: releaseTextures portion of GrDrawState Ref textures CL (Closed)

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

Description

This CL breaks out the releaseTextures portion of http://codereview.appspot.com/6251049/ and modifies it to have an AutoTextureRelease helper class

Patch Set 1 #

Total comments: 9

Patch Set 2 : Removed unnecessary setTexture's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M src/gpu/GrContext.cpp View 1 7 chunks +9 lines, -1 line 0 comments Download
M src/gpu/GrDefaultTextContext.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 7
robertphillips
12 years, 5 months ago (2012-06-13 15:20:33 UTC) #1
bsalomon
http://codereview.appspot.com/6299081/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): http://codereview.appspot.com/6299081/diff/1/src/gpu/GrContext.cpp#newcode252 src/gpu/GrContext.cpp:252: drawState->setTexture(0, NULL); Can the caller of this function declare ...
12 years, 5 months ago (2012-06-13 15:37:33 UTC) #2
TomH
This + Brian's description on 6251049 sounds good to me.
12 years, 5 months ago (2012-06-13 15:55:32 UTC) #3
robertphillips
http://codereview.appspot.com/6299081/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): http://codereview.appspot.com/6299081/diff/1/src/gpu/GrContext.cpp#newcode252 src/gpu/GrContext.cpp:252: drawState->setTexture(0, NULL); Deleted b.c. of AutoStateRestore http://codereview.appspot.com/6299081/diff/1/src/gpu/GrContext.cpp#newcode400 src/gpu/GrContext.cpp:400: texture->releaseRenderTarget(); ...
12 years, 5 months ago (2012-06-13 17:37:33 UTC) #4
TomH
LGTM.
12 years, 5 months ago (2012-06-13 17:38:20 UTC) #5
bsalomon
On 2012/06/13 17:38:20, TomH wrote: > LGTM. LGTM
12 years, 5 months ago (2012-06-13 18:02:58 UTC) #6
robertphillips
12 years, 5 months ago (2012-06-13 18:50:08 UTC) #7
committed as r4254
Sign in to reply to this message.

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