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

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

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix test compiler errors Created 7 years, 7 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 "cc/base/thread_impl.h" 7 #include "cc/base/thread_impl.h"
8 #include "cc/layers/content_layer.h" 8 #include "cc/layers/content_layer.h"
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 RunTest(true, true, true); 555 RunTest(true, true, true);
556 } 556 }
557 557
558 class ImplSidePaintingScrollTest : public LayerTreeHostScrollTest { 558 class ImplSidePaintingScrollTest : public LayerTreeHostScrollTest {
559 public: 559 public:
560 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { 560 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
561 settings->impl_side_painting = true; 561 settings->impl_side_painting = true;
562 } 562 }
563 563
564 virtual void DrawLayersOnThread(LayerTreeHostImpl* impl) OVERRIDE { 564 virtual void DrawLayersOnThread(LayerTreeHostImpl* impl) OVERRIDE {
565 // Manual vsync tick.
566 if (impl->pending_tree()) 565 if (impl->pending_tree())
567 impl->SetNeedsRedraw(); 566 impl->SetNeedsRedraw();
568 } 567 }
569 }; 568 };
570 569
571 class ImplSidePaintingScrollTestSimple : public ImplSidePaintingScrollTest { 570 class ImplSidePaintingScrollTestSimple : public ImplSidePaintingScrollTest {
572 public: 571 public:
573 ImplSidePaintingScrollTestSimple() 572 ImplSidePaintingScrollTestSimple()
574 : initial_scroll_(10, 20), 573 : initial_scroll_(10, 20),
575 main_thread_scroll_(40, 5), 574 main_thread_scroll_(40, 5),
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 LayerTreeHost::Create(&client, settings, impl_ccthread.Pass()); 792 LayerTreeHost::Create(&client, settings, impl_ccthread.Pass());
794 793
795 layer_tree_host->DidStopFlinging(); 794 layer_tree_host->DidStopFlinging();
796 layer_tree_host.reset(); 795 layer_tree_host.reset();
797 impl_thread.Stop(); 796 impl_thread.Stop();
798 EXPECT_TRUE(received_stop_flinging); 797 EXPECT_TRUE(received_stop_flinging);
799 } 798 }
800 799
801 } // namespace 800 } // namespace
802 } // namespace cc 801 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698