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

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

Issue 2175043002: Add command buffer function glScheduleCALayerFilterEffectsCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix autogenerated tests. Created 4 years, 5 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 2ba0f863e21a74af34bacbe4cb751ef97c1e26c6..b2458b4d1c204339140badf7b58fdb3aaa0badb6 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -6142,6 +6142,26 @@ GLuint GLES2Implementation::CreateGpuMemoryBufferImageCHROMIUM(
return image_id;
}
+void GLES2Implementation::ScheduleCALayerFilterEffectsCHROMIUM(
+ GLsizei count,
+ const GLCALayerFilterEffect* effects) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix()
+ << "] ScheduleCALayerFilterEffectsCHROMIUM(" << count
+ << ", " << static_cast<const void*>(effects) << ")");
+ GPU_CLIENT_LOG_CODE_BLOCK({
+ for (GLsizei i = 0; i < count; ++i) {
+ const GLCALayerFilterEffect& effect = effects[i];
+ GPU_CLIENT_LOG(" " << i << ": " << effect.type << " " << effect.amount
+ << " " << effect.drop_shadow_offset_x << " "
+ << effect.drop_shadow_offset_y << " "
+ << effect.drop_shadow_color);
+ }
+ });
+ helper_->ScheduleCALayerFilterEffectsCHROMIUMImmediate(count, effects);
+ CheckGLError();
+}
+
bool GLES2Implementation::ValidateSize(const char* func, GLsizeiptr size) {
if (size < 0) {
SetGLError(GL_INVALID_VALUE, func, "size < 0");
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.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