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

Unified Diff: cc/layer_tree_host_unittest.cc

Issue 11348083: Revert 168095 - Merge 167537 - Use message passing for BeginFrameAndCommitState and clean up forced… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src/
Patch Set: Created 8 years, 1 month 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 | « cc/layer_tree_host.cc ('k') | cc/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_unittest.cc
===================================================================
--- cc/layer_tree_host_unittest.cc (revision 168100)
+++ cc/layer_tree_host_unittest.cc (working copy)
@@ -2517,48 +2517,6 @@
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestCompositeAndReadbackCleanup)
-class LayerTreeHostTestCompositeAndReadbackAnimateCount : public LayerTreeHostTest {
-public:
- LayerTreeHostTestCompositeAndReadbackAnimateCount()
- : m_layoutCount(0)
- {
- }
-
- virtual void animate(base::TimeTicks) OVERRIDE
- {
- // We shouldn't animate on the compositeAndReadback-forced commit, but we should
- // for the setNeedsCommit-triggered commit.
- EXPECT_EQ(1, m_layoutCount);
- }
-
- virtual void layout() OVERRIDE
- {
- m_layoutCount++;
- if (m_layoutCount == 2)
- endTest();
- }
-
- virtual void beginTest() OVERRIDE
- {
- m_layerTreeHost->setNeedsCommit();
-
- char pixels[4];
- m_layerTreeHost->compositeAndReadback(&pixels, gfx::Rect(0, 0, 1, 1));
- }
-
- virtual void afterTest() OVERRIDE
- {
- }
-
-private:
- int m_layoutCount;
-};
-
-TEST_F(LayerTreeHostTestCompositeAndReadbackAnimateCount, runMultiThread)
-{
- runTest(true);
-}
-
class LayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit : public LayerTreeHostTest {
public:
LayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit()
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698