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

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

Issue 16871016: cc: Use BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@bfargs2
Patch Set: else if typo Created 7 years, 5 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
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/layers/content_layer.h" 8 #include "cc/layers/content_layer.h"
9 #include "cc/layers/heads_up_display_layer.h" 9 #include "cc/layers/heads_up_display_layer.h"
10 #include "cc/layers/io_surface_layer.h" 10 #include "cc/layers/io_surface_layer.h"
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 } 981 }
982 982
983 layer_tree_host()->SetRootLayer(parent_); 983 layer_tree_host()->SetRootLayer(parent_);
984 LayerTreeHostContextTest::SetupTree(); 984 LayerTreeHostContextTest::SetupTree();
985 } 985 }
986 986
987 virtual void BeginTest() OVERRIDE { 987 virtual void BeginTest() OVERRIDE {
988 PostSetNeedsCommitToMainThread(); 988 PostSetNeedsCommitToMainThread();
989 } 989 }
990 990
991 virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE { 991 virtual void SwapBuffersCompleteOnThread(LayerTreeHostImpl* host_impl)
992 LayerTreeHostContextTest::CommitCompleteOnThread(impl); 992 OVERRIDE {
993 LayerTreeHostContextTest::SwapBuffersCompleteOnThread(host_impl);
993 EndTest(); 994 EndTest();
994 } 995 }
995 996
996 virtual void DidInitializeOutputSurface(bool succeeded) OVERRIDE { 997 virtual void DidInitializeOutputSurface(bool succeeded) OVERRIDE {
997 EXPECT_TRUE(succeeded); 998 EXPECT_TRUE(succeeded);
998 } 999 }
999 1000
1000 virtual void AfterTest() OVERRIDE { 1001 virtual void AfterTest() OVERRIDE {
1001 EXPECT_EQ(0, times_to_lose_on_end_query_); 1002 EXPECT_EQ(0, times_to_lose_on_end_query_);
1002 } 1003 }
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 impl_thread ? impl_thread->message_loop_proxy() : NULL); 1598 impl_thread ? impl_thread->message_loop_proxy() : NULL);
1598 EXPECT_FALSE(layer_tree_host); 1599 EXPECT_FALSE(layer_tree_host);
1599 } 1600 }
1600 }; 1601 };
1601 1602
1602 SINGLE_AND_MULTI_THREAD_TEST_F( 1603 SINGLE_AND_MULTI_THREAD_TEST_F(
1603 LayerTreeHostTestCannotCreateIfCannotCreateOutputSurface); 1604 LayerTreeHostTestCannotCreateIfCannotCreateOutputSurface);
1604 1605
1605 } // namespace 1606 } // namespace
1606 } // namespace cc 1607 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698