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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 960873002: Update from https://crrev.com/318214 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 2dd95ec410850613d8279ef3ba12b7d0bb884469..59385241e5c89526420ceda1fd8c50d75fc050b1 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -747,6 +747,33 @@ bool GLES2Implementation::GetInternalformativHelper(
return false;
}
+bool GLES2Implementation::GetSyncivHelper(
+ GLsync sync, GLenum pname, GLsizei bufsize, GLsizei* length,
+ GLint* values) {
+ GLint value = 0;
+ switch (pname) {
+ case GL_OBJECT_TYPE:
+ value = GL_SYNC_FENCE;
+ break;
+ case GL_SYNC_CONDITION:
+ value = GL_SYNC_GPU_COMMANDS_COMPLETE;
+ break;
+ case GL_SYNC_FLAGS:
+ value = 0;
+ break;
+ default:
+ return false;
+ }
+ if (bufsize > 0) {
+ DCHECK(values);
+ *values = value;
+ }
+ if (length) {
+ *length = 1;
+ }
+ return true;
+}
+
GLuint GLES2Implementation::GetMaxValueInBufferCHROMIUMHelper(
GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) {
typedef cmds::GetMaxValueInBufferCHROMIUM::Result Result;
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698