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

Unified Diff: src/gpu/gl/GrGLCaps.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/GrGLCaps.h
===================================================================
--- src/gpu/gl/GrGLCaps.h (revision 8359)
+++ src/gpu/gl/GrGLCaps.h (working copy)
@@ -12,6 +12,7 @@
#include "SkTArray.h"
#include "SkTDArray.h"
#include "GrGLStencilBuffer.h"
+#include "GrDrawTarget.h"
class GrGLContextInfo;
@@ -20,7 +21,7 @@
* version and the extensions string. It also tracks formats that have passed
* the FBO completeness test.
*/
-class GrGLCaps {
+class GrGLCaps : public GrDrawTarget::Caps {
public:
typedef GrGLStencilBuffer::Format StencilFormat;
@@ -93,7 +94,7 @@
/**
* Resets the caps such that nothing is supported.
*/
- void reset();
+ virtual void reset() SK_OVERRIDE;
/**
* Initializes the GrGLCaps to the set of features supported in the current
@@ -158,7 +159,7 @@
/**
* Prints the caps info using GrPrintf.
*/
- void print() const;
+ virtual void print() const SK_OVERRIDE;
/**
* Gets an array of legal stencil formats. These formats are not guaranteed
@@ -308,6 +309,8 @@
bool fVertexArrayObjectSupport : 1;
bool fUseNonVBOVertexAndIndexDynamicData : 1;
bool fIsCoreProfile : 1;
+
+ typedef GrDrawTarget::Caps INHERITED;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698