Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: src/gpu/gl/GrGpuGL.h

Issue 12843026: Make GrDrawTarget::Caps ref counted and GrGLCaps derive from it. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGpuGL.h
===================================================================
--- src/gpu/gl/GrGpuGL.h (revision 8359)
+++ src/gpu/gl/GrGpuGL.h (working copy)
@@ -57,7 +57,7 @@
virtual void abandonResources() SK_OVERRIDE;
- const GrGLCaps& glCaps() const { return fGLContext.info().caps(); }
+ const GrGLCaps& glCaps() const { return *fGLContext.info().caps(); }
// These functions should be used to bind GL objects. They track the GL state and skip redundant
// bindings. Making the equivalent glBind calls directly will confuse the state tracking.
@@ -218,9 +218,6 @@
// flushing the scissor after that function is called.
void flushScissor();
- // Inits GrDrawTarget::Caps, subclass may enable additional caps.
- void initCaps();
-
void initFSAASupport();
// determines valid stencil formats
@@ -431,8 +428,6 @@
// from our loop that tries stencil formats and calls check fb status.
int fLastSuccessfulStencilFmtIdx;
- bool fPrintedCaps;
-
typedef GrGpu INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698