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

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

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments. Created 4 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
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/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "cc/animation/animation_host.h" 10 #include "cc/animation/animation_host.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 FakeLayerTreeHostClient fake_client_; 367 FakeLayerTreeHostClient fake_client_;
368 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; 368 scoped_ptr<FakeLayerTreeHost> layer_tree_host_;
369 }; 369 };
370 370
371 namespace { 371 namespace {
372 372
373 class MockLayerTreeHost : public LayerTreeHost { 373 class MockLayerTreeHost : public LayerTreeHost {
374 public: 374 public:
375 MockLayerTreeHost(LayerTreeHostSingleThreadClient* single_thread_client, 375 MockLayerTreeHost(LayerTreeHostSingleThreadClient* single_thread_client,
376 LayerTreeHost::InitParams* params) 376 LayerTreeHost::InitParams* params)
377 : LayerTreeHost(params, CompositorMode::SingleThreaded) { 377 : LayerTreeHost(params, CompositorMode::SINGLE_THREADED) {
378 InitializeSingleThreaded(single_thread_client, 378 InitializeSingleThreaded(single_thread_client,
379 base::ThreadTaskRunnerHandle::Get(), nullptr); 379 base::ThreadTaskRunnerHandle::Get(), nullptr);
380 } 380 }
381 381
382 MOCK_METHOD0(SetNeedsCommit, void()); 382 MOCK_METHOD0(SetNeedsCommit, void());
383 MOCK_METHOD0(SetNeedsUpdateLayers, void()); 383 MOCK_METHOD0(SetNeedsUpdateLayers, void());
384 MOCK_METHOD0(SetNeedsFullTreeSync, void()); 384 MOCK_METHOD0(SetNeedsFullTreeSync, void());
385 }; 385 };
386 386
387 class LayerTreeSettingsForLayerTest : public LayerTreeSettings { 387 class LayerTreeSettingsForLayerTest : public LayerTreeSettings {
(...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after
2132 EXPECT_EQ(kMutablePropertyNone, impl_layer->mutable_properties()); 2132 EXPECT_EQ(kMutablePropertyNone, impl_layer->mutable_properties());
2133 2133
2134 test_layer->PushPropertiesTo(impl_layer.get()); 2134 test_layer->PushPropertiesTo(impl_layer.get());
2135 2135
2136 EXPECT_EQ(2lu, impl_layer->element_id()); 2136 EXPECT_EQ(2lu, impl_layer->element_id());
2137 EXPECT_EQ(kMutablePropertyTransform, impl_layer->mutable_properties()); 2137 EXPECT_EQ(kMutablePropertyTransform, impl_layer->mutable_properties());
2138 } 2138 }
2139 2139
2140 } // namespace 2140 } // namespace
2141 } // namespace cc 2141 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698