diff options
author | 2013-01-28 15:35:28 +0000 | |
---|---|---|
committer | 2013-01-28 15:35:28 +0000 | |
commit | 02ddc8b85ace91b15feb329a6a1d5d62b2b846c6 (patch) | |
tree | d745f2ea7a41bd09efe8c54db1ac0934a1174d22 /src/gpu/gl | |
parent | 9e040aed72f80602896a069273a05d8933d6ad6e (diff) |
Make a bunch of virtuals in GrDrawTarget and GrGpu private. Subclasses shouldn't call them directly.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/7228048
git-svn-id: http://skia.googlecode.com/svn/trunk@7413 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGpuGL.h | 12 | ||||
-rw-r--r-- | src/gpu/gl/GrGpuGL_program.cpp | 2 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h index fd391d80b9..0210c6560e 100644 --- a/src/gpu/gl/GrGpuGL.h +++ b/src/gpu/gl/GrGpuGL.h @@ -56,7 +56,7 @@ public: virtual void abandonResources() SK_OVERRIDE; -protected: +private: // GrGpu overrides virtual void onResetContext() SK_OVERRIDE; @@ -120,8 +120,6 @@ protected: int vertexCount, int indexCount) SK_OVERRIDE; -private: - const GrGLCaps& glCaps() const { return fGLContextInfo.caps(); } // binds texture unit in GL @@ -129,17 +127,13 @@ private: // binds appropriate vertex and index buffers, also returns any extra // extra verts or indices to offset by. - void setBuffers(bool indexed, - int* extraVertexOffset, - int* extraIndexOffset); + void setBuffers(bool indexed, int* extraVertexOffset, int* extraIndexOffset); // Subclasses should call this to flush the blend state. // The params should be the final coeffecients to apply // (after any blending optimizations or dual source blending considerations // have been accounted for). - void flushBlend(bool isLines, - GrBlendCoeff srcCoeff, - GrBlendCoeff dstCoeff); + void flushBlend(bool isLines, GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff); bool hasExtension(const char* ext) const { return fGLContextInfo.hasExtension(ext); diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp index 7e0d0b06fb..b8d5f08088 100644 --- a/src/gpu/gl/GrGpuGL_program.cpp +++ b/src/gpu/gl/GrGpuGL_program.cpp @@ -317,7 +317,7 @@ bool GrGpuGL::flushGraphicsState(DrawType type) { GrIRect* devRect = NULL; GrIRect devClipBounds; if (drawState.isClipState()) { - fClip->getConservativeBounds(drawState.getRenderTarget(), &devClipBounds); + this->getClip()->getConservativeBounds(drawState.getRenderTarget(), &devClipBounds); devRect = &devClipBounds; } // This must come after textures are flushed because a texture may need |