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

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

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed vmpstr's comments. Created 4 years, 10 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
« no previous file with comments | « cc/trees/layer_tree_host_perftest.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 namespace cc { 70 namespace cc {
71 namespace { 71 namespace {
72 72
73 class LayerTreeHostTest : public LayerTreeTest {}; 73 class LayerTreeHostTest : public LayerTreeTest {};
74 74
75 class LayerTreeHostTestHasImplThreadTest : public LayerTreeHostTest { 75 class LayerTreeHostTestHasImplThreadTest : public LayerTreeHostTest {
76 public: 76 public:
77 LayerTreeHostTestHasImplThreadTest() : threaded_(false) {} 77 LayerTreeHostTestHasImplThreadTest() : threaded_(false) {}
78 78
79 void RunTest(CompositorMode mode, bool delegating_renderer) override { 79 void RunTest(CompositorMode mode, bool delegating_renderer) override {
80 threaded_ = mode == CompositorMode::Threaded; 80 threaded_ = mode == CompositorMode::THREADED;
81 LayerTreeHostTest::RunTest(mode, delegating_renderer); 81 LayerTreeHostTest::RunTest(mode, delegating_renderer);
82 } 82 }
83 83
84 void BeginTest() override { 84 void BeginTest() override {
85 EXPECT_EQ(threaded_, HasImplThread()); 85 EXPECT_EQ(threaded_, HasImplThread());
86 EndTest(); 86 EndTest();
87 } 87 }
88 88
89 void AfterTest() override { EXPECT_EQ(threaded_, HasImplThread()); } 89 void AfterTest() override { EXPECT_EQ(threaded_, HasImplThread()); }
90 90
(...skipping 6501 matching lines...) Expand 10 before | Expand all | Expand 10 after
6592 EndTest(); 6592 EndTest();
6593 } 6593 }
6594 6594
6595 void AfterTest() override {} 6595 void AfterTest() override {}
6596 }; 6596 };
6597 6597
6598 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); 6598 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor);
6599 6599
6600 } // namespace 6600 } // namespace
6601 } // namespace cc 6601 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_perftest.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698