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

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

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include gl_image.h Created 4 years, 6 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_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 37bdecdaa82eb6e4ede3d61fcbd6201e61e296a9..487d0a66e503894021728a69ea392c076dda3182 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -3276,6 +3276,27 @@ void GLES2Implementation::ScheduleOverlayPlaneCHROMIUM(
CheckGLError();
}
+void GLES2Implementation::ScheduleCALayerInUseQueryCHROMIUM(
+ GLsizei count,
+ const GLuint* textures) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix()
+ << "] glScheduleCALayerInUseQueryCHROMIUM(" << count
+ << ", " << static_cast<const void*>(textures) << ")");
+ GPU_CLIENT_LOG_CODE_BLOCK({
+ for (GLsizei i = 0; i < count; ++i) {
+ GPU_CLIENT_LOG(" " << i << ": " << textures[0 + i * 1]);
+ }
+ });
+ if (count < 0) {
+ SetGLError(GL_INVALID_VALUE, "glScheduleCALayerInUseQueryCHROMIUM",
+ "count < 0");
+ return;
+ }
+ helper_->ScheduleCALayerInUseQueryCHROMIUMImmediate(count, textures);
+ CheckGLError();
+}
+
void GLES2Implementation::FlushDriverCachesCHROMIUM() {
GPU_CLIENT_SINGLE_THREAD_CHECK();
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFlushDriverCachesCHROMIUM("

Powered by Google App Engine
This is Rietveld 408576698