summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/aura/root_window_host_win.cc4
-rw-r--r--ui/gfx/compositor/layer.cc7
2 files changed, 9 insertions, 2 deletions
diff --git a/ui/aura/root_window_host_win.cc b/ui/aura/root_window_host_win.cc
index 443da6b..0b8d28c 100644
--- a/ui/aura/root_window_host_win.cc
+++ b/ui/aura/root_window_host_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -224,7 +224,7 @@ void RootWindowHostWin::SetCursor(gfx::NativeCursor native_cursor) {
}
void RootWindowHostWin::ShowCursor(bool show) {
- NOTIMPLEMENTED();
+ // NOTIMPLEMENTED();
}
gfx::Point RootWindowHostWin::QueryMouseLocation() {
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_,
&regions_to_draw);
@@ -382,6 +388,7 @@ void Layer::Draw() {
texture_->Draw(texture_draw_params, regions_to_draw[i]);
}
#endif
+#endif
}
void Layer::DrawTree() {