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

Unified Diff: ui/gl/gl_bindings_skia_in_process.cc

Issue 197393002: Add hooks for GL_EXT_debug_markers for Skia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixes Created 6 years, 9 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 | « ui/gl/generate_bindings.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings_skia_in_process.cc
diff --git a/ui/gl/gl_bindings_skia_in_process.cc b/ui/gl/gl_bindings_skia_in_process.cc
index 38e0f16f61f362a4129a7a44355052c809e92a30..28da2c722c794d241fde5f71df5d199ce297ad80 100644
--- a/ui/gl/gl_bindings_skia_in_process.cc
+++ b/ui/gl/gl_bindings_skia_in_process.cc
@@ -346,6 +346,10 @@ GLint StubGLGetUniformLocation(GLuint program, const char* name) {
return glGetUniformLocation(program, name);
}
+GLvoid StubGLInsertEventMarker(GLsizei length, const char* marker) {
+ glInsertEventMarkerEXT(length, marker);
+}
+
GLvoid StubGLLineWidth(GLfloat width) {
glLineWidth(width);
}
@@ -362,6 +366,14 @@ GLvoid StubGLPixelStorei(GLenum pname, GLint param) {
glPixelStorei(pname, param);
}
+GLvoid StubGLPopGroupMarker() {
+ glPopGroupMarkerEXT();
+}
+
+GLvoid StubGLPushGroupMarker(GLsizei length, const char* marker) {
+ glPushGroupMarkerEXT(length, marker);
+}
+
GLvoid StubGLQueryCounter(GLuint id, GLenum target) {
glQueryCounter(id, target);
}
@@ -648,9 +660,12 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fGetString = StubGLGetString;
functions->fGetTexLevelParameteriv = StubGLGetTexLevelParameteriv;
functions->fGetUniformLocation = StubGLGetUniformLocation;
+ functions->fInsertEventMarker = StubGLInsertEventMarker;
functions->fLineWidth = StubGLLineWidth;
functions->fLinkProgram = StubGLLinkProgram;
functions->fPixelStorei = StubGLPixelStorei;
+ functions->fPopGroupMarker = StubGLPopGroupMarker;
+ functions->fPushGroupMarker = StubGLPushGroupMarker;
functions->fQueryCounter = StubGLQueryCounter;
functions->fReadBuffer = StubGLReadBuffer;
functions->fReadPixels = StubGLReadPixels;
« no previous file with comments | « ui/gl/generate_bindings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698