Add alpha argument to glResizeCHROMIUM
This lets the compositor specify whether the backbuffer will need to be blended with the contents behind it, and if not it can use a method that uses less power.
BUG=561185
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1474873003
Cr-Commit-Position: refs/heads/master@{#362817}
CrOS-Libchrome-Original-Commit: 8046f1cbb18126cd9ea1a405c93e545f2c377978
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc
index 8b57228..8f817e3 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -1410,9 +1410,10 @@
}
void MojoGLES2Impl::ResizeCHROMIUM(GLuint width,
GLuint height,
- GLfloat scale_factor) {
+ GLfloat scale_factor,
+ GLboolean alpha) {
MojoGLES2MakeCurrent(context_);
- glResizeCHROMIUM(width, height, scale_factor);
+ glResizeCHROMIUM(width, height, scale_factor, alpha);
}
const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
MojoGLES2MakeCurrent(context_);
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.h b/mojo/gpu/mojo_gles2_impl_autogen.h
index 4b43bb9..e207ca4 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.h
+++ b/mojo/gpu/mojo_gles2_impl_autogen.h
@@ -649,7 +649,8 @@
void UnmapTexSubImage2DCHROMIUM(const void* mem) override;
void ResizeCHROMIUM(GLuint width,
GLuint height,
- GLfloat scale_factor) override;
+ GLfloat scale_factor,
+ GLboolean alpha) override;
const GLchar* GetRequestableExtensionsCHROMIUM() override;
void RequestExtensionCHROMIUM(const char* extension) override;
void GetProgramInfoCHROMIUM(GLuint program,
diff --git a/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h b/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h
index c9b1c0a..a6c8585 100644
--- a/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h
+++ b/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h
@@ -140,10 +140,11 @@
GLenum access),
(target, level, xoffset, yoffset, width, height, format, type, access))
VISIT_GL_CALL(UnmapTexSubImage2DCHROMIUM, void, (const void* mem), (mem))
-VISIT_GL_CALL(ResizeCHROMIUM,
- void,
- (GLuint width, GLuint height, GLfloat scale_factor),
- (width, height, scale_factor))
+VISIT_GL_CALL(
+ ResizeCHROMIUM,
+ void,
+ (GLuint width, GLuint height, GLfloat scale_factor, GLboolean alpha),
+ (width, height, scale_factor, alpha))
VISIT_GL_CALL(GetRequestableExtensionsCHROMIUM, const GLchar*, (), ())
VISIT_GL_CALL(RequestExtensionCHROMIUM,
void,