aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLContextInfo.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-26 21:46:32 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-26 21:46:32 +0000
commit1744f97ea73384b9f75b0ccee0a36a213c681d3a (patch)
tree984f3a6988234c1a797049b2a43705cf970c1866 /src/gpu/gl/GrGLContextInfo.h
parent8d33a24cfe4540126ae00618cc691c610d398d8d (diff)
Use glGetStringi to get extensions when available.
Review URL: https://codereview.chromium.org/12328111 git-svn-id: http://skia.googlecode.com/svn/trunk@7872 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLContextInfo.h')
-rw-r--r--src/gpu/gl/GrGLContextInfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLContextInfo.h b/src/gpu/gl/GrGLContextInfo.h
index a6c997f5a2..bfadabe87f 100644
--- a/src/gpu/gl/GrGLContextInfo.h
+++ b/src/gpu/gl/GrGLContextInfo.h
@@ -9,6 +9,7 @@
#ifndef GrGLContextInfo_DEFINED
#define GrGLContextInfo_DEFINED
+#include "gl/GrGLExtensions.h"
#include "gl/GrGLInterface.h"
#include "GrGLCaps.h"
#include "GrGLSL.h"
@@ -70,7 +71,7 @@ public:
if (!this->isInitialized()) {
return false;
}
- return GrGLHasExtensionFromString(ext, fExtensionString.c_str());
+ return fExtensions.has(ext);
}
private:
@@ -81,7 +82,7 @@ private:
GrGLVersion fGLVersion;
GrGLSLGeneration fGLSLGeneration;
GrGLVendor fVendor;
- SkString fExtensionString;
+ GrGLExtensions fExtensions;
GrGLCaps fGLCaps;
};