diff options
author | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-15 08:24:56 +0000 |
---|---|---|
committer | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-15 08:24:56 +0000 |
commit | 7d08a93537fedd6c349f2194d7e2ba0d22b39e35 (patch) | |
tree | e68f1d4985f2334e54dc8dd412c0200ab2f7963a /cc/test/layer_tree_test.h | |
parent | 0d30d93182920e565fa76eaf49053fd9ac07cc6f (diff) | |
download | chromium_src-7d08a93537fedd6c349f2194d7e2ba0d22b39e35.zip chromium_src-7d08a93537fedd6c349f2194d7e2ba0d22b39e35.tar.gz chromium_src-7d08a93537fedd6c349f2194d7e2ba0d22b39e35.tar.bz2 |
Fix race conditions in window snapshot code.
Use LatencyInfo to track when a rendered frame reaches the screen.
Only tested so far on Linux with single-threaded compositor. Must be
tested with Telemetry's GpuTabTest.testScreenshot test on all of
Windows, Mac and Linux with the compositor disabled, enabled and
single-threaded, and enabled and multi-threaded.
BUG=256848
Review URL: https://codereview.chromium.org/23694031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_test.h')
-rw-r--r-- | cc/test/layer_tree_test.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h index c9e14d6..d7607fb 100644 --- a/cc/test/layer_tree_test.h +++ b/cc/test/layer_tree_test.h @@ -117,6 +117,7 @@ class LayerTreeTest : public testing::Test, public TestHooks { void PostSetNeedsRedrawToMainThread(); void PostSetNeedsRedrawRectToMainThread(gfx::Rect damage_rect); void PostSetVisibleToMainThread(bool visible); + void PostSetNextCommitForcesRedrawToMainThread(); void DoBeginTest(); void Timeout(); @@ -138,6 +139,7 @@ class LayerTreeTest : public testing::Test, public TestHooks { void DispatchSetNeedsRedraw(); void DispatchSetNeedsRedrawRect(gfx::Rect damage_rect); void DispatchSetVisible(bool visible); + void DispatchSetNextCommitForcesRedraw(); void DispatchComposite(); void DispatchDidAddAnimation(); |