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

Issue 5654084: Make GLCaps be standalone and be a member of GrGLContextInfo (Closed)

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

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+585 lines, -408 lines) Patch
M gyp/gpu.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A src/gpu/gl/GrGLCaps.h View 1 1 chunk +227 lines, -0 lines 0 comments Download
A src/gpu/gl/GrGLCaps.cpp View 1 1 chunk +301 lines, -0 lines 6 comments Download
M src/gpu/gl/GrGLContextInfo.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLContextInfo.cpp View 1 3 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLStencilBuffer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 3 chunks +2 lines, -113 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 31 chunks +44 lines, -294 lines 0 comments Download
M src/gpu/gl/GrGpuGLShaders.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
bsalomon
In which struct GrGpuGL::GLCaps is turned into a non-nested class. The code in GrGpuGL that ...
12 years, 4 months ago (2012-02-13 20:05:10 UTC) #1
TomH
LGTM http://codereview.appspot.com/5654084/diff/2001/src/gpu/gl/GrGLCaps.cpp File src/gpu/gl/GrGLCaps.cpp (right): http://codereview.appspot.com/5654084/diff/2001/src/gpu/gl/GrGLCaps.cpp#newcode47 src/gpu/gl/GrGLCaps.cpp:47: fMSFBOType = caps.fMSFBOType; Nit: OK, this is really, ...
12 years, 4 months ago (2012-02-13 22:06:38 UTC) #2
bsalomon
12 years, 4 months ago (2012-02-14 14:10:55 UTC) #3
Checked in at r3183.

http://codereview.appspot.com/5654084/diff/2001/src/gpu/gl/GrGLCaps.cpp
File src/gpu/gl/GrGLCaps.cpp (right):

http://codereview.appspot.com/5654084/diff/2001/src/gpu/gl/GrGLCaps.cpp#newco...
src/gpu/gl/GrGLCaps.cpp:47: fMSFBOType = caps.fMSFBOType;
On 2012/02/13 22:06:38, TomH wrote:
> Nit: OK, this is really, really trivial (nit^2?): could you keep the order of
> the fields consistent in these two functions?

Done.

http://codereview.appspot.com/5654084/diff/2001/src/gpu/gl/GrGLCaps.cpp#newco...
src/gpu/gl/GrGLCaps.cpp:82: fMaxFragmentUniformVectors = 16;
On 2012/02/13 22:06:38, TomH wrote:
> Is this really a valid state? Or should we be dying?

It's not valid. Changed to:
    if (kES2_GrGLBinding == binding) {
        GR_GL_GetIntegerv(gli, GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS,
                          &fMaxFragmentUniformVectors);
    } else {
        GrAssert(kDesktop_GrGLBinding == binding);
        GrGLint max;
        GR_GL_GetIntegerv(gli, GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &max);
        fMaxFragmentUniformVectors = max / 4;
    }

http://codereview.appspot.com/5654084/diff/2001/src/gpu/gl/GrGLCaps.cpp#newco...
src/gpu/gl/GrGLCaps.cpp:175: // Omitting fVerifiedColorConfigs from initializer
list should init to 0.
On 2012/02/13 22:06:38, TomH wrote:
> I don't understand this sentence.

It's obsolete and now removed.
Sign in to reply to this message.

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