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

Issue 4833045: cleanup GrGLTexture / GrGLRenderTarget cons. Make GrRenderTarget aware of its msaa sample count. (Closed)

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

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -204 lines) Patch
M gpu/include/GrRenderTarget.h View 3 chunks +9 lines, -4 lines 0 comments Download
M gpu/include/GrTypes.h View 3 chunks +13 lines, -1 line 0 comments Download
M gpu/src/GrContext.cpp View 2 chunks +12 lines, -0 lines 0 comments Download
M gpu/src/GrGLRenderTarget.h View 2 chunks +17 lines, -10 lines 1 comment Download
M gpu/src/GrGLRenderTarget.cpp View 1 chunk +28 lines, -16 lines 0 comments Download
M gpu/src/GrGLTexture.h View 3 chunks +14 lines, -5 lines 0 comments Download
M gpu/src/GrGLTexture.cpp View 3 chunks +29 lines, -16 lines 2 comments Download
M gpu/src/GrGpuGL.cpp View 17 chunks +163 lines, -151 lines 0 comments Download
M gyp/gpu.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3
bsalomon
12 years, 9 months ago (2011-07-29 19:39:47 UTC) #1
TomH
LGTM http://codereview.appspot.com/4833045/diff/1/gpu/src/GrGLRenderTarget.h File gpu/src/GrGLRenderTarget.h (right): http://codereview.appspot.com/4833045/diff/1/gpu/src/GrGLRenderTarget.h#newcode49 gpu/src/GrGLRenderTarget.h:49: const GrGLIRect& viewport); Nice separation. http://codereview.appspot.com/4833045/diff/1/gpu/src/GrGLTexture.cpp File gpu/src/GrGLTexture.cpp ...
12 years, 9 months ago (2011-07-29 20:17:29 UTC) #2
bsalomon
12 years, 9 months ago (2011-07-29 20:48:43 UTC) #3
Closed with r1996.

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

http://codereview.appspot.com/4833045/diff/1/gpu/src/GrGLTexture.cpp#newcode57
gpu/src/GrGLTexture.cpp:57: if (NULL != rtDesc) {
On 2011/07/29 20:17:30, TomH wrote:
> This just got a lot more general?

Before we had one GrGLTexture cons. It always took a RT descriptor. We
determined whether the tex being created was also a RT by looking at one
particular value (fTexFBOID). This seemed kind of tricky.

Now we have two constructors and its the caller's responsibility to call the
correct one. If they use the one with a RT Desc we now assume they wanted to
create a tex/RT.  If they use the cons that doesn't take a RT desc, then it's
just a tex.

I'll add an assert to the GrGLRenderTarget cons that it doesn't get FBO ID 0 and
a texture ID (since FBO 0 is the window system's buffer and can't also be a
texture).
Sign in to reply to this message.

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