summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 22:32:04 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 22:32:04 +0000
commit772f1b796b8d2ba00f2e398168d575a5e6db637c (patch)
treeec95dc4fb297a8cfac9be24e43a1ebea84b31356 /views
parent6a48559060bdafd22cf2a94bf39b8514bafa400a (diff)
downloadchromium_src-772f1b796b8d2ba00f2e398168d575a5e6db637c.zip
chromium_src-772f1b796b8d2ba00f2e398168d575a5e6db637c.tar.gz
chromium_src-772f1b796b8d2ba00f2e398168d575a5e6db637c.tar.bz2
Enable VSync on TOUCH_UI
This eliminates tearing on scrolling and animations. Unfortunately, due to a driver bug, we can only vsync if the window is not full screen. BUG=100000 TEST=flick scroll on a page with images; there should be no tearing Review URL: http://codereview.chromium.org/8272004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/widget/native_widget_gtk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc
index 8f9b735..b9995df 100644
--- a/views/widget/native_widget_gtk.cc
+++ b/views/widget/native_widget_gtk.cc
@@ -1251,8 +1251,9 @@ void NativeWidgetGtk::Maximize() {
// top-left corner and resize to the entire bounds of the screen.
gfx::Rect screen = gfx::Screen::GetMonitorAreaNearestWindow(GetNativeView());
gtk_window_move(GTK_WINDOW(GetNativeWindow()), screen.x(), screen.y());
+ // TODO(backer): Remove this driver bug workaround once it is fixed.
gtk_window_resize(GTK_WINDOW(GetNativeWindow()),
- screen.width(), screen.height());
+ screen.width() - 1, screen.height());
#else
gtk_window_maximize(GetNativeWindow());
#endif