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

Unified Diff: include/gpu/gl/GrGLFunctions.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: include/gpu/gl/GrGLFunctions.h
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h
index beb657d30a1f578fbe69107faf504efe4a0758b4..1e4324afb2a381fa604f7cd46db0fef175fa583a 100644
--- a/include/gpu/gl/GrGLFunctions.h
+++ b/include/gpu/gl/GrGLFunctions.h
@@ -11,12 +11,27 @@
#include "GrGLConfig.h"
+////////////////////////////////////////////////////////////////////////////////
+
/**
- * Declares typedefs for all the GL functions used in GrGLInterface
+ * Classifies GL contexts by which standard they implement (currently as Desktop
+ * vs. ES).
*/
+enum GrGLStandard {
+ kNone_GrGLStandard,
+ kGL_GrGLStandard,
+ kGLES_GrGLStandard,
+};
+
+// Temporary alias until Chromium can be updated.
+static const GrGLStandard kES2_GrGLBinding = kGLES_GrGLStandard;
///////////////////////////////////////////////////////////////////////////////
+/**
+ * Declares typedefs for all the GL functions used in GrGLInterface
+ */
+
typedef unsigned int GrGLenum;
typedef unsigned char GrGLboolean;
typedef unsigned int GrGLbitfield;

Powered by Google App Engine
This is Rietveld 408576698