summaryrefslogtreecommitdiffstats
path: root/gpu/blink/webgraphicscontext3d_impl.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/blink/webgraphicscontext3d_impl.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/blink/webgraphicscontext3d_impl.cc')
-rw-r--r--gpu/blink/webgraphicscontext3d_impl.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpu/blink/webgraphicscontext3d_impl.cc b/gpu/blink/webgraphicscontext3d_impl.cc
index 0ef42a2..a3fc0ed 100644
--- a/gpu/blink/webgraphicscontext3d_impl.cc
+++ b/gpu/blink/webgraphicscontext3d_impl.cc
@@ -223,7 +223,11 @@ bool WebGraphicsContext3DImpl::insertSyncPoint(WGC3Dbyte* sync_token) {
return true;
}
-DELEGATE_TO_GL_3(reshapeWithScaleFactor, ResizeCHROMIUM, int, int, float)
+void WebGraphicsContext3DImpl::reshapeWithScaleFactor(int width,
+ int height,
+ float scale) {
+ gl_->ResizeCHROMIUM(width, height, scale, true);
+}
DELEGATE_TO_GL_4R(mapBufferSubDataCHROMIUM, MapBufferSubDataCHROMIUM, WGC3Denum,
WGC3Dintptr, WGC3Dsizeiptr, WGC3Denum, void*)