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

Unified Diff: include/gpu/gl/SkGLContext.h

Issue 12328111: Use glGetStringi to get extensions when available. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLContextInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/SkGLContext.h
===================================================================
--- include/gpu/gl/SkGLContext.h (revision 7868)
+++ include/gpu/gl/SkGLContext.h (working copy)
@@ -8,8 +8,8 @@
#ifndef SkGLContext_DEFINED
#define SkGLContext_DEFINED
+#include "GrGLExtensions.h"
#include "GrGLInterface.h"
-#include "SkString.h"
/**
* Create an offscreen opengl context with an RGBA8 / 8bit stencil FBO.
@@ -34,7 +34,10 @@
virtual void makeCurrent() const = 0;
- bool hasExtension(const char* extensionName) const;
+ bool hasExtension(const char* extensionName) const {
+ GrAssert(NULL != fGL);
+ return fExtensions.has(extensionName);
+ }
protected:
/**
@@ -51,7 +54,7 @@
virtual void destroyGLContext() = 0;
private:
- SkString fExtensionString;
+ GrGLExtensions fExtensions;
GrGLuint fFBO;
GrGLuint fColorBufferID;
GrGLuint fDepthStencilBufferID;
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLContextInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698