Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: webkit/tools/test_shell/webwidget_host.h

Issue 198031: [GTK] Stash new dimensions on resize, so that the backing store can use them (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webwidget_host.h
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index 49c0ba798483468ae11a407d896d3c68768f4c3f..cb9dee75f9076ed8edec1ee9d220b3e897524570 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -132,6 +132,11 @@ class WebWidgetHost {
int scroll_dy_;
bool track_mouse_leave_;
+#if defined(OS_LINUX)
+ // Since GtkWindow resize is asynchronous, we have to stash the dimensions,
+ // so that the backing store doesn't have to wait for sizing to take place.
+ gfx::Size logical_size_;
+#endif
#ifndef NDEBUG
bool painting_;
« no previous file with comments | « no previous file | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698