diff options
Diffstat (limited to 'ui/gfx/compositor/layer.cc')
-rw-r--r-- | ui/gfx/compositor/layer.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/gfx/compositor/layer.cc b/ui/gfx/compositor/layer.cc index aead021..adbf009 100644 --- a/ui/gfx/compositor/layer.cc +++ b/ui/gfx/compositor/layer.cc @@ -373,6 +373,12 @@ void Layer::Draw() { texture_draw_params.opacity = combined_opacity; texture_draw_params.has_valid_alpha_channel = has_valid_alpha_channel(); +#if defined(OS_WIN) + // TODO(beng): figure out why the other branch of this code renders improperly + // on Windows, and fix it, otherwise just remove all of this when + // WK compositor is default. + texture_->Draw(texture_draw_params, gfx::Rect(gfx::Point(), bounds().size())); +#else std::vector<gfx::Rect> regions_to_draw; PunchHole(gfx::Rect(gfx::Point(), bounds().size()), hole_rect_, ®ions_to_draw); @@ -382,6 +388,7 @@ void Layer::Draw() { texture_->Draw(texture_draw_params, regions_to_draw[i]); } #endif +#endif } void Layer::DrawTree() { |