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

Unified Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 2456213002: WebVR: implement SetSurfaceHandleCHROMIUM extension for gvr_device.
Patch Set: bajones #16, #19: Use struct for state, fix BUILD deps Created 4 years, 1 month 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: gpu/command_buffer/client/gles2_implementation_impl_autogen.h
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
index 679822032ddf8c633dc779aafb744ac5eeb897b8..96dce13b1c61a5b4d90389d966d9539b25df3d27 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -3506,4 +3506,12 @@ void GLES2Implementation::UniformMatrix4fvStreamTextureMatrixCHROMIUM(
CheckGLError();
}
+void GLES2Implementation::SetSurfaceHandleCHROMIUM(GLint surfaceHandle) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glSetSurfaceHandleCHROMIUM("
+ << surfaceHandle << ")");
+ helper_->SetSurfaceHandleCHROMIUM(surfaceHandle);
+ CheckGLError();
+}
+
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_

Powered by Google App Engine
This is Rietveld 408576698