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

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_registrar.h" 9 #include "cc/animation/animation_registrar.h"
10 #include "cc/animation/layer_animation_controller.h" 10 #include "cc/animation/layer_animation_controller.h"
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 FAIL() << "Test timed out"; 778 FAIL() << "Test timed out";
779 return; 779 return;
780 } 780 }
781 AfterTest(); 781 AfterTest();
782 } 782 }
783 783
784 void LayerTreeTest::RunTestWithImplSidePainting() { 784 void LayerTreeTest::RunTestWithImplSidePainting() {
785 RunTest(true, false, true); 785 RunTest(true, false, true);
786 } 786 }
787 787
788 void LayerTreeTest::RunTestWithMainThreadLowLatency() {
789 settings_.main_thread_should_always_be_low_latency = true;
790 RunTest(false, false, false);
791 }
792
793 void LayerTreeTest::RequestNewOutputSurface(bool fallback) { 788 void LayerTreeTest::RequestNewOutputSurface(bool fallback) {
794 layer_tree_host_->SetOutputSurface(CreateOutputSurface(fallback)); 789 layer_tree_host_->SetOutputSurface(CreateOutputSurface(fallback));
795 } 790 }
796 791
797 scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface(bool fallback) { 792 scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface(bool fallback) {
798 scoped_ptr<FakeOutputSurface> output_surface = 793 scoped_ptr<FakeOutputSurface> output_surface =
799 CreateFakeOutputSurface(fallback); 794 CreateFakeOutputSurface(fallback);
800 if (output_surface) { 795 if (output_surface) {
801 DCHECK_EQ(delegating_renderer_, 796 DCHECK_EQ(delegating_renderer_,
802 output_surface->capabilities().delegated_rendering); 797 output_surface->capabilities().delegated_rendering);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 return -1; 829 return -1;
835 } 830 }
836 831
837 void LayerTreeTest::DestroyLayerTreeHost() { 832 void LayerTreeTest::DestroyLayerTreeHost() {
838 if (layer_tree_host_ && layer_tree_host_->root_layer()) 833 if (layer_tree_host_ && layer_tree_host_->root_layer())
839 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); 834 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL);
840 layer_tree_host_ = nullptr; 835 layer_tree_host_ = nullptr;
841 } 836 }
842 837
843 } // namespace cc 838 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698