aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-08-09 12:42:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-09 12:42:47 -0700
commit9bc1187249f27ffed448b49ad75fd226d8181241 (patch)
tree8d7c76ace097f356523e6f57936994cdbe90920b /include
parentb47cd4b3d6daad037651daa20fae6770285966d6 (diff)
Include EXT_window_rectangles API
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrCaps.h2
-rw-r--r--include/gpu/gl/GrGLFunctions.h3
-rw-r--r--include/gpu/gl/GrGLInterface.h3
3 files changed, 8 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index c6b535d0bb..924546f91c 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -264,6 +264,7 @@ public:
}
}
+ int maxWindowRectangles() const { return fMaxWindowRectangles; }
virtual bool isConfigTexturable(GrPixelConfig config) const = 0;
virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
@@ -340,6 +341,7 @@ protected:
int fMaxColorSampleCount;
int fMaxStencilSampleCount;
int fMaxRasterSamples;
+ int fMaxWindowRectangles;
private:
virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h
index 7822eac81a..4dff208a9b 100644
--- a/include/gpu/gl/GrGLFunctions.h
+++ b/include/gpu/gl/GrGLFunctions.h
@@ -353,6 +353,9 @@ typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPushDebugGroupProc)(GrGLenum source,
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLPopDebugGroupProc)();
typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLObjectLabelProc)(GrGLenum identifier, GrGLuint name, GrGLsizei length, const GrGLchar *label);
+/** EXT_window_rectangles */
+typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLWindowRectanglesProc)(GrGLenum mode, GrGLsizei count, const GrGLint box[]);
+
/** EGL functions */
typedef const char* (GR_GL_FUNCTION_TYPE* GrEGLQueryStringProc)(GrEGLDisplay dpy, GrEGLint name);
typedef GrEGLDisplay (GR_GL_FUNCTION_TYPE* GrEGLGetCurrentDisplayProc)();
diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h
index b735b8fadf..0603e9e1d6 100644
--- a/include/gpu/gl/GrGLInterface.h
+++ b/include/gpu/gl/GrGLInterface.h
@@ -460,6 +460,9 @@ public:
GrGLFunction<GrGLPopDebugGroupProc> fPopDebugGroup;
GrGLFunction<GrGLObjectLabelProc> fObjectLabel;
+ /* EXT_window_rectangles */
+ GrGLFunction<GrGLWindowRectanglesProc> fWindowRectangles;
+
/* EGL functions */
GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage;
GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage;