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

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: blah nits. 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/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..20d0f9c1a1f908f8609e6929e0c4e077835605c4 100644
--- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_schedule_ca_layer.txt
@@ -35,6 +35,16 @@ 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;
erikchen 2016/07/23 00:26:48 I could add 10 new parameters, and add conversions
piman 2016/07/23 00:39:58 SG. Can you list what are the valid values here?
erikchen 2016/07/23 14:18:15 Done.
+ GLfloat amount;
+ GLint drop_shadow_offset_x;
+ GLint drop_shadow_offset_y;
+ GLuint drop_shadow_color;
+ };
+
New Procedures and Functions
The command
@@ -87,6 +97,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

Powered by Google App Engine
This is Rietveld 408576698