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

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

Issue 140823003: Move GrGLExtensions from GrGLContextInfo to GrGLInterface (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload again, rietveld diff failed. Created 6 years, 11 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/GrGLContext.h
diff --git a/src/gpu/gl/GrGLContext.h b/src/gpu/gl/GrGLContext.h
index eb40b36cf38821df523c9ae215dde693da08978e..d8536babc3e7ff4b7a4375bca6a25a1d5139be93 100644
--- a/src/gpu/gl/GrGLContext.h
+++ b/src/gpu/gl/GrGLContext.h
@@ -58,16 +58,11 @@ public:
bool isChromium() const { return fIsChromium; }
const GrGLCaps* caps() const { return fGLCaps.get(); }
GrGLCaps* caps() { return fGLCaps; }
- const GrGLExtensions& extensions() const { return fExtensions; }
-
- /**
- * Shortcut for extensions().has(ext)
- */
bool hasExtension(const char* ext) const {
if (!this->isInitialized()) {
return false;
}
- return fExtensions.has(ext);
+ return fInterface->hasExtension(ext);
}
/**
@@ -81,7 +76,6 @@ protected:
GrGLSLGeneration fGLSLGeneration;
GrGLVendor fVendor;
GrGLRenderer fRenderer;
- GrGLExtensions fExtensions;
bool fIsMesa;
bool fIsChromium;
SkAutoTUnref<GrGLCaps> fGLCaps;

Powered by Google App Engine
This is Rietveld 408576698