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

Side by Side Diff: cc/layers/surface_layer_unittest.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/layers/solid_color_layer_impl_unittest.cc ('k') | cc/layers/texture_layer_unittest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <set> 5 #include <set>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "cc/layers/solid_color_layer.h" 9 #include "cc/layers/solid_color_layer.h"
10 #include "cc/layers/surface_layer.h" 10 #include "cc/layers/surface_layer.h"
(...skipping 11 matching lines...) Expand all
22 namespace cc { 22 namespace cc {
23 namespace { 23 namespace {
24 24
25 class SurfaceLayerTest : public testing::Test { 25 class SurfaceLayerTest : public testing::Test {
26 public: 26 public:
27 SurfaceLayerTest() 27 SurfaceLayerTest()
28 : fake_client_( 28 : fake_client_(
29 FakeLayerTreeHostClient(FakeLayerTreeHostClient::DIRECT_3D)) {} 29 FakeLayerTreeHostClient(FakeLayerTreeHostClient::DIRECT_3D)) {}
30 30
31 protected: 31 protected:
32 virtual void SetUp() { 32 void SetUp() override {
33 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); 33 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_);
34 layer_tree_host_->SetViewportSize(gfx::Size(10, 10)); 34 layer_tree_host_->SetViewportSize(gfx::Size(10, 10));
35 } 35 }
36 36
37 virtual void TearDown() { 37 void TearDown() override {
38 if (layer_tree_host_) { 38 if (layer_tree_host_) {
39 layer_tree_host_->SetRootLayer(nullptr); 39 layer_tree_host_->SetRootLayer(nullptr);
40 layer_tree_host_ = nullptr; 40 layer_tree_host_ = nullptr;
41 } 41 }
42 } 42 }
43 43
44 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; 44 scoped_ptr<FakeLayerTreeHost> layer_tree_host_;
45 FakeLayerTreeHostClient fake_client_; 45 FakeLayerTreeHostClient fake_client_;
46 TestSharedBitmapManager shared_bitmap_manager_; 46 TestSharedBitmapManager shared_bitmap_manager_;
47 }; 47 };
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 SurfaceId required_id_; 230 SurfaceId required_id_;
231 std::set<SurfaceSequence> required_set_; 231 std::set<SurfaceSequence> required_set_;
232 }; 232 };
233 233
234 // TODO(jbauman): Reenable on single thread once http://crbug.com/421923 is 234 // TODO(jbauman): Reenable on single thread once http://crbug.com/421923 is
235 // fixed. 235 // fixed.
236 MULTI_THREAD_TEST_F(SurfaceLayerSwapPromise); 236 MULTI_THREAD_TEST_F(SurfaceLayerSwapPromise);
237 237
238 } // namespace 238 } // namespace
239 } // namespace cc 239 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/solid_color_layer_impl_unittest.cc ('k') | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698