summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/gles2_implementation.cc
diff options
context:
space:
mode:
authorjbauman <jbauman@chromium.org>2015-12-02 15:15:40 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-02 23:18:18 +0000
commit8046f1cbb18126cd9ea1a405c93e545f2c377978 (patch)
treed7882c1c67e7b472945270b9942931db114ffc8f /gpu/command_buffer/client/gles2_implementation.cc
parent139d1058893d281aa122b41910c9dc243dfb94d7 (diff)
downloadchromium_src-8046f1cbb18126cd9ea1a405c93e545f2c377978.zip
chromium_src-8046f1cbb18126cd9ea1a405c93e545f2c377978.tar.gz
chromium_src-8046f1cbb18126cd9ea1a405c93e545f2c377978.tar.bz2
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}
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation.cc')
-rw-r--r--gpu/command_buffer/client/gles2_implementation.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 208a08b..9b52768 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4692,12 +4692,14 @@ void GLES2Implementation::UnmapTexSubImage2DCHROMIUM(const void* mem) {
CheckGLError();
}
-void GLES2Implementation::ResizeCHROMIUM(GLuint width, GLuint height,
- float scale_factor) {
+void GLES2Implementation::ResizeCHROMIUM(GLuint width,
+ GLuint height,
+ float scale_factor,
+ GLboolean alpha) {
GPU_CLIENT_SINGLE_THREAD_CHECK();
- GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glResizeCHROMIUM("
- << width << ", " << height << ", " << scale_factor << ")");
- helper_->ResizeCHROMIUM(width, height, scale_factor);
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glResizeCHROMIUM(" << width << ", "
+ << height << ", " << scale_factor << ", " << alpha << ")");
+ helper_->ResizeCHROMIUM(width, height, scale_factor, alpha);
CheckGLError();
}