summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/compositor/layer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/gfx/compositor/layer.cc b/ui/gfx/compositor/layer.cc
index 53097bd..214b07e 100644
--- a/ui/gfx/compositor/layer.cc
+++ b/ui/gfx/compositor/layer.cc
@@ -89,8 +89,9 @@ void Layer::Draw() {
static_cast<float>(layer->bounds_.y()));
}
- // Only blend for child layers. The root layer will clobber the cleared bg.
- texture_draw_params.blend = parent_ != NULL;
+ // Only blend for transparent child layers.
+ // The root layer will clobber the cleared bg.
+ texture_draw_params.blend = parent_ != NULL && !fills_bounds_opaquely_;
#if defined(OS_WIN)
texture_->Draw(texture_draw_params);