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

Issue 4802058: Add sizeInBytes to GrResource, make GrRenderTarget aware of its pixel config. (Closed)

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

Description

This is the first of a series of changes to make Gr able to manage stencil buffers more dynamically. This change makes the resource size a base class query. The next change will use this to turn GrTextureCache into GrResourceCache (which will eventually also manage a new GrStencilBuffer class). It also makes GrRenderTarget aware of its pixel config. It is a bit hairy to figure out the pixel config from the current GL state, hence all the new GL code and added GL enums/func ptrs.

Patch Set 1 #

Patch Set 2 : remove change in unrelated file #

Patch Set 3 : cleanup, add ios bindings #

Patch Set 4 : fix signed/unsigned warning #

Total comments: 2

Patch Set 5 : make arbFBO param a little clearer #

Patch Set 6 : Added android gl interface changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -58 lines) Patch
M gpu/include/GrGLConfig.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M gpu/include/GrGLDefines.h View 4 chunks +22 lines, -9 lines 0 comments Download
M gpu/include/GrGLInterface.h View 1 2 4 chunks +6 lines, -0 lines 0 comments Download
M gpu/include/GrGLTexture.h View 2 chunks +2 lines, -1 line 0 comments Download
M gpu/include/GrGeometryBuffer.h View 2 chunks +4 lines, -6 lines 0 comments Download
M gpu/include/GrIndexBuffer.h View 1 chunk +3 lines, -1 line 0 comments Download
gpu/include/GrResource.h View 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/include/GrTexture.h View 7 chunks +21 lines, -8 lines 0 comments Download
M gpu/src/GrBufferAllocPool.cpp View 7 chunks +7 lines, -7 lines 0 comments Download
M gpu/src/GrDrawTarget.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M gpu/src/GrGLIndexBuffer.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M gpu/src/GrGLInterface.cpp View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M gpu/src/GrGLTexture.cpp View 3 chunks +5 lines, -2 lines 0 comments Download
M gpu/src/GrGLVertexBuffer.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M gpu/src/GrGpuGL.cpp View 1 2 3 4 2 chunks +158 lines, -6 lines 0 comments Download
M gpu/src/GrTextContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gpu/src/GrTexture.cpp View 2 chunks +11 lines, -0 lines 0 comments Download
M gpu/src/android/GrGLDefaultInterface_android.cpp View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M gpu/src/ios/GrGLDefaultInterface_iOS.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/src/mac/GrGLDefaultInterface_mac.cpp View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M gpu/src/mesa/GrGLDefaultInterface_mesa.cpp View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M gpu/src/unix/GrGLDefaultInterface_unix.cpp View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M gpu/src/win/GrGLDefaultInterface_win.cpp View 1 2 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 5
bsalomon
13 years, 2 months ago (2011-07-25 14:19:05 UTC) #1
reed1
defers to Tom
13 years, 2 months ago (2011-07-25 14:38:59 UTC) #2
TomH
Do we need an implementation in android/GrGLDefaultInterface? Otherwise LGTM. Nits to follow: http://codereview.appspot.com/4802058/diff/5001/gpu/src/GrGLIndexBuffer.cpp File gpu/src/GrGLIndexBuffer.cpp ...
13 years, 2 months ago (2011-07-25 15:53:21 UTC) #3
bsalomon
On 2011/07/25 15:53:21, TomH wrote: > Do we need an implementation in android/GrGLDefaultInterface? > Yes, ...
13 years, 2 months ago (2011-07-25 17:02:36 UTC) #4
bsalomon
13 years, 2 months ago (2011-07-25 18:18:06 UTC) #5
Closed with r1951
Sign in to reply to this message.

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