summaryrefslogtreecommitdiffstats
path: root/ui/surface/accelerated_surface_win.h
diff options
context:
space:
mode:
authorvangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 01:48:43 +0000
committervangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 01:48:43 +0000
commit8b1c3c78175dad3de4a9b5246dbde90a019a282b (patch)
tree27a7fc271c9a8842387d946dff7a895259676ced /ui/surface/accelerated_surface_win.h
parent7f48b71cb22bb2fc9fcec2013e9eaff55381a43d (diff)
downloadchromium_src-8b1c3c78175dad3de4a9b5246dbde90a019a282b.zip
chromium_src-8b1c3c78175dad3de4a9b5246dbde90a019a282b.tar.gz
chromium_src-8b1c3c78175dad3de4a9b5246dbde90a019a282b.tar.bz2
Speculative fix for the white/stale tab issue on Windows.
Adds two flags to trigger a Present via GDI the first time Present is called after the tab had been hidden: --all-show-present-with-GDI : GDI present on every first present after tab is unhidden --first-show-present-with-GDI : GDI present only once, the very first time the tab is unhidden. (pushing these through. trybot failures are unrelated since this CL just adds a flag that's disabled by default) BUG=169848 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12039052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178729 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/surface/accelerated_surface_win.h')
-rw-r--r--ui/surface/accelerated_surface_win.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/surface/accelerated_surface_win.h b/ui/surface/accelerated_surface_win.h
index 166bf5b..67a4542 100644
--- a/ui/surface/accelerated_surface_win.h
+++ b/ui/surface/accelerated_surface_win.h
@@ -139,6 +139,10 @@ class SURFACE_EXPORT AcceleratedPresenter
// last hidden.
bool hidden_;
+ // Set to true if the first present after the tab is unhidden needs to be done
+ // with GDI.
+ bool do_present_with_GDI_;
+
// These are used to detect when the window is resizing. For some reason,
// presenting with D3D while the window resizes causes those parts not
// drawn with D3D (e.g. with GDI) to flicker visible / invisible.