diff options
author | jbauman <jbauman@chromium.org> | 2015-12-02 15:15:40 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-02 23:18:18 +0000 |
commit | 8046f1cbb18126cd9ea1a405c93e545f2c377978 (patch) | |
tree | d7882c1c67e7b472945270b9942931db114ffc8f /cc/output | |
parent | 139d1058893d281aa122b41910c9dc243dfb94d7 (diff) | |
download | chromium_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 'cc/output')
-rw-r--r-- | cc/output/output_surface.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc index 3430d18..d8b7962 100644 --- a/cc/output/output_surface.cc +++ b/cc/output/output_surface.cc @@ -257,8 +257,8 @@ void OutputSurface::Reshape(const gfx::Size& size, float scale_factor) { surface_size_ = size; device_scale_factor_ = scale_factor; if (context_provider_.get()) { - context_provider_->ContextGL()->ResizeCHROMIUM( - size.width(), size.height(), scale_factor); + context_provider_->ContextGL()->ResizeCHROMIUM(size.width(), size.height(), + scale_factor, GL_TRUE); } if (software_device_) software_device_->Resize(size, scale_factor); |