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

Unified Diff: gpu/GLES2/gl2extchromium.h

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions Created 5 years 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 | « content/common/gpu/stream_texture_android.cc ('k') | gpu/command_buffer/client/context_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/GLES2/gl2extchromium.h
diff --git a/gpu/GLES2/gl2extchromium.h b/gpu/GLES2/gl2extchromium.h
index 51af9dc02bc2601036de2930c0fe0181dbdba33f..15524418042873edf7b791cbf4e542d34834ffa5 100644
--- a/gpu/GLES2/gl2extchromium.h
+++ b/gpu/GLES2/gl2extchromium.h
@@ -111,6 +111,10 @@ typedef void (
#ifndef GL_CHROMIUM_gpu_memory_buffer_image
#define GL_CHROMIUM_gpu_memory_buffer_image 1
+#ifndef GL_BGR
+#define GL_BGR 0x80E0
+#endif
+
#ifndef GL_READ_WRITE_CHROMIUM
#define GL_READ_WRITE_CHROMIUM 0x78F2
#endif
@@ -783,6 +787,7 @@ GL_APICALL void GL_APIENTRY glUniformValuebufferCHROMIUM(GLint location,
GL_APICALL void GL_APIENTRY
glScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
GLenum plane_transform,
+ GLuint storage_format,
GLuint overlay_texture_id,
GLint bounds_x,
GLint bounds_y,
@@ -791,11 +796,13 @@ GL_APICALL void GL_APIENTRY
GLfloat uv_x,
GLfloat uv_y,
GLfloat uv_width,
- GLfloat uv_height);
+ GLfloat uv_height,
+ GLboolean handle_scaling);
#endif
typedef void(GL_APIENTRYP PFNGLSCHEDULEOVERLAYPLANECHROMIUMPROC)(
GLint plane_z_order,
GLenum plane_transform,
+ GLuint optimal_storage_format,
GLuint overlay_texture_id,
GLint bounds_x,
GLint bounds_y,
@@ -804,7 +811,8 @@ typedef void(GL_APIENTRYP PFNGLSCHEDULEOVERLAYPLANECHROMIUMPROC)(
GLfloat uv_x,
GLfloat uv_y,
GLfloat uv_width,
- GLfloat uv_height);
+ GLfloat uv_height,
+ GLboolean scale_buffer);
#endif /* GL_CHROMIUM_schedule_overlay_plane */
#ifndef GL_CHROMIUM_schedule_ca_layer
« no previous file with comments | « content/common/gpu/stream_texture_android.cc ('k') | gpu/command_buffer/client/context_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698