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

Side by Side Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "cc/debug/test_context_provider.h" 8 #include "cc/debug/test_context_provider.h"
9 #include "cc/debug/test_web_graphics_context_3d.h" 9 #include "cc/debug/test_web_graphics_context_3d.h"
10 #include "cc/layers/content_layer.h" 10 #include "cc/layers/content_layer.h"
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 MULTI_THREAD_TEST_F( 1569 MULTI_THREAD_TEST_F(
1570 LayerTreeHostContextTestLoseOutputSurfaceDuringReadbackAndForcedDraw); 1570 LayerTreeHostContextTestLoseOutputSurfaceDuringReadbackAndForcedDraw);
1571 1571
1572 // This test verifies that losing an output surface right before a 1572 // This test verifies that losing an output surface right before a
1573 // simultaneous readback and forced redraw works and does not deadlock. 1573 // simultaneous readback and forced redraw works and does not deadlock.
1574 class LayerTreeHostContextTestReadbackWithForcedDrawAndOutputSurfaceInit 1574 class LayerTreeHostContextTestReadbackWithForcedDrawAndOutputSurfaceInit
1575 : public LayerTreeHostContextTest { 1575 : public LayerTreeHostContextTest {
1576 protected: 1576 protected:
1577 static const int kFirstOutputSurfaceInitSourceFrameNumber = 0; 1577 static const int kFirstOutputSurfaceInitSourceFrameNumber = 0;
1578 static const int kReadbackSourceFrameNumber = 1; 1578 static const int kReadbackSourceFrameNumber = 1;
1579 static const int kReadbackReplacementSourceFrameNumber = 2;
1580 static const int kForcedDrawCommitSourceFrameNumber = 2; 1579 static const int kForcedDrawCommitSourceFrameNumber = 2;
1581 static const int kSecondOutputSurfaceInitSourceFrameNumber = 2; 1580 static const int kSecondOutputSurfaceInitSourceFrameNumber = 2;
1582 1581
1583 LayerTreeHostContextTestReadbackWithForcedDrawAndOutputSurfaceInit() 1582 LayerTreeHostContextTestReadbackWithForcedDrawAndOutputSurfaceInit()
1584 : did_lose_context_(false) {} 1583 : did_lose_context_(false) {}
1585 1584
1586 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { 1585 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
1587 // This enables forced draws after a single prepare to draw failure. 1586 // This enables forced draws after a single prepare to draw failure.
1588 settings->timeout_and_draw_when_animation_checkerboards = true; 1587 settings->timeout_and_draw_when_animation_checkerboards = true;
1589 settings->maximum_number_of_failed_draws_before_draw_is_forced_ = 1; 1588 settings->maximum_number_of_failed_draws_before_draw_is_forced_ = 1;
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 EXPECT_TRUE(impl->CanDraw()); 2244 EXPECT_TRUE(impl->CanDraw());
2246 break; 2245 break;
2247 } 2246 }
2248 } 2247 }
2249 }; 2248 };
2250 2249
2251 SINGLE_AND_MULTI_THREAD_TEST_F(UIResourceLostEviction); 2250 SINGLE_AND_MULTI_THREAD_TEST_F(UIResourceLostEviction);
2252 2251
2253 } // namespace 2252 } // namespace
2254 } // namespace cc 2253 } // namespace cc
OLDNEW
« no previous file with comments | « apps/shell_window_geometry_cache_unittest.cc ('k') | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698