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

Unified Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt

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
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
index 5b87c930a7af16b7a21a4ac48d7c3aa67ba9fd76..f5c82dbb55095d71c4cba5e687c40fa9838d70c5 100644
--- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
@@ -35,6 +35,19 @@ New Tokens
GL_CA_LAYER_EDGE_BOTTOM_CHROMIUM 0x04
GL_CA_LAYER_EDGE_TOP_CHROMIUM 0x08
+ Accepted by the <filter_effects> parameter of
+ glScheduleCALayerFilterEffectsCHROMIUM:
+ struct GLCALayerFilterEffect {
+ GLint type;
+ GLfloat amount;
+ GLint drop_shadow_offset_x;
+ GLint drop_shadow_offset_y;
+ GLuint drop_shadow_color;
+ };
+ The valid values for type are in the range [0, 9] inclusive. Clients should
+ convert them from ui::CARendererLayerParams::FilterEffectType, as the
+ service will convert them back to that enum.
+
New Procedures and Functions
The command
@@ -87,6 +100,15 @@ New Procedures and Functions
The command
+ glScheduleCALayerFilterEffectsCHROMIUM(
+ GLsizei count,
+ GLCALayerFilterEffect* filter_effects)
+
+ applies the <filter_effects> to the next CALayer to be scheduled. A
+ consecutive call to glScheduleCALayerFilterEffectsCHROMIUM overrides the
+ previously saved <filter_effects>. A call to glSwapBuffers clears any saved
+ <filter_effects>
+
glScheduleCALayerInUseQueryCHROMIUM(GLsizei count, GLuint* textures);
schedules a query at the time of the next call to swap buffers. If the given
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698