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

Unified Diff: gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc

Issue 2867523002: Update Skia GL bindings to include query and MRT functions (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
diff --git a/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc b/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
index d93206e6f0ddbafb91c891f3d8ec7a90e75fb95a..1b31ba71df1ae4d21f85792d6eea9300e2790d1c 100644
--- a/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
+++ b/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
@@ -77,6 +77,7 @@ sk_sp<GrGLInterface> CreateGLES2InterfaceBindings(GLES2Interface* impl) {
functions->fDrawArrays = gles_bind(&GLES2Interface::DrawArrays, impl);
functions->fDrawArraysInstanced =
gles_bind(&GLES2Interface::DrawArraysInstancedANGLE, impl);
+ functions->fDrawBuffers = gles_bind(&GLES2Interface::DrawBuffersEXT, impl);
functions->fDrawElements = gles_bind(&GLES2Interface::DrawElements, impl);
functions->fDrawElementsInstanced =
gles_bind(&GLES2Interface::DrawElementsInstancedANGLE, impl);
@@ -85,6 +86,7 @@ sk_sp<GrGLInterface> CreateGLES2InterfaceBindings(GLES2Interface* impl) {
functions->fEnable = gles_bind(&GLES2Interface::Enable, impl);
functions->fEnableVertexAttribArray =
gles_bind(&GLES2Interface::EnableVertexAttribArray, impl);
+ functions->fEndQuery = gles_bind(&GLES2Interface::EndQueryEXT, impl);
functions->fFenceSync = gles_bind(&GLES2Interface::FenceSync, impl);
functions->fFinish = gles_bind(&GLES2Interface::Finish, impl);
functions->fFlush = gles_bind(&GLES2Interface::Flush, impl);
@@ -102,6 +104,9 @@ sk_sp<GrGLInterface> CreateGLES2InterfaceBindings(GLES2Interface* impl) {
functions->fGetProgramInfoLog =
gles_bind(&GLES2Interface::GetProgramInfoLog, impl);
functions->fGetProgramiv = gles_bind(&GLES2Interface::GetProgramiv, impl);
+ functions->fGetQueryiv = gles_bind(&GLES2Interface::GetQueryivEXT, impl);
+ functions->fGetQueryObjectuiv =
+ gles_bind(&GLES2Interface::GetQueryObjectuivEXT, impl);
functions->fGetShaderInfoLog =
gles_bind(&GLES2Interface::GetShaderInfoLog, impl);
functions->fGetShaderiv = gles_bind(&GLES2Interface::GetShaderiv, impl);
@@ -130,6 +135,7 @@ sk_sp<GrGLInterface> CreateGLES2InterfaceBindings(GLES2Interface* impl) {
gles_bind(&GLES2Interface::PopGroupMarkerEXT, impl);
functions->fPushGroupMarker =
gles_bind(&GLES2Interface::PushGroupMarkerEXT, impl);
+ functions->fReadBuffer = gles_bind(&GLES2Interface::ReadBuffer, impl);
functions->fReadPixels = gles_bind(&GLES2Interface::ReadPixels, impl);
functions->fScissor = gles_bind(&GLES2Interface::Scissor, impl);
functions->fShaderSource = gles_bind(&GLES2Interface::ShaderSource, impl);
@@ -191,12 +197,15 @@ sk_sp<GrGLInterface> CreateGLES2InterfaceBindings(GLES2Interface* impl) {
functions->fWaitSync = gles_bind(&GLES2Interface::WaitSync, impl);
functions->fBindFramebuffer =
gles_bind(&GLES2Interface::BindFramebuffer, impl);
+ functions->fBeginQuery = gles_bind(&GLES2Interface::BeginQueryEXT, impl);
functions->fBindRenderbuffer =
gles_bind(&GLES2Interface::BindRenderbuffer, impl);
functions->fCheckFramebufferStatus =
gles_bind(&GLES2Interface::CheckFramebufferStatus, impl);
functions->fDeleteFramebuffers =
gles_bind(&GLES2Interface::DeleteFramebuffers, impl);
+ functions->fDeleteQueries =
+ gles_bind(&GLES2Interface::DeleteQueriesEXT, impl);
functions->fDeleteRenderbuffers =
gles_bind(&GLES2Interface::DeleteRenderbuffers, impl);
functions->fFramebufferRenderbuffer =
@@ -213,6 +222,7 @@ sk_sp<GrGLInterface> CreateGLES2InterfaceBindings(GLES2Interface* impl) {
gles_bind(&GLES2Interface::GetFramebufferAttachmentParameteriv, impl);
functions->fGetRenderbufferParameteriv =
gles_bind(&GLES2Interface::GetRenderbufferParameteriv, impl);
+ functions->fGenQueries = gles_bind(&GLES2Interface::GenQueriesEXT, impl);
functions->fRenderbufferStorage =
gles_bind(&GLES2Interface::RenderbufferStorage, impl);
functions->fRenderbufferStorageMultisample =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698