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

Side by Side Diff: blimp/client/test/compositor/blimp_compositor_with_fake_host.cc

Issue 2489033002: content/blimp: Remove unused compositing mode switches. (Closed)
Patch Set: test Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "blimp/client/test/compositor/blimp_compositor_with_fake_host.h" 5 #include "blimp/client/test/compositor/blimp_compositor_with_fake_host.h"
6 6
7 #include "cc/animation/animation_host.h" 7 #include "cc/animation/animation_host.h"
8 #include "cc/proto/compositor_message.pb.h" 8 #include "cc/proto/compositor_message.pb.h"
9 #include "cc/test/fake_proxy.h" 9 #include "cc/test/fake_proxy.h"
10 10
11 namespace blimp { 11 namespace blimp {
12 namespace client { 12 namespace client {
13 13
14 // static 14 // static
15 std::unique_ptr<BlimpCompositorWithFakeHost> 15 std::unique_ptr<BlimpCompositorWithFakeHost>
16 BlimpCompositorWithFakeHost::Create( 16 BlimpCompositorWithFakeHost::Create(
17 BlimpCompositorDependencies* compositor_dependencies, 17 BlimpCompositorDependencies* compositor_dependencies,
18 BlimpCompositorClient* client) { 18 BlimpCompositorClient* client) {
19 std::unique_ptr<BlimpCompositorWithFakeHost> compositor = base::WrapUnique( 19 std::unique_ptr<BlimpCompositorWithFakeHost> compositor = base::WrapUnique(
20 new BlimpCompositorWithFakeHost(compositor_dependencies, client)); 20 new BlimpCompositorWithFakeHost(compositor_dependencies, client));
21 compositor->Initialize(); 21 compositor->Initialize();
22 return compositor; 22 return compositor;
23 } 23 }
24 24
25 BlimpCompositorWithFakeHost::BlimpCompositorWithFakeHost( 25 BlimpCompositorWithFakeHost::BlimpCompositorWithFakeHost(
26 BlimpCompositorDependencies* compositor_dependencies, 26 BlimpCompositorDependencies* compositor_dependencies,
27 BlimpCompositorClient* client) 27 BlimpCompositorClient* client)
28 : BlimpCompositor(compositor_dependencies, client, true) {} 28 : BlimpCompositor(compositor_dependencies, client) {}
29 29
30 BlimpCompositorWithFakeHost::~BlimpCompositorWithFakeHost() = default; 30 BlimpCompositorWithFakeHost::~BlimpCompositorWithFakeHost() = default;
31 31
32 std::unique_ptr<cc::proto::CompositorMessage> 32 std::unique_ptr<cc::proto::CompositorMessage>
33 BlimpCompositorWithFakeHost::CreateFakeUpdate( 33 BlimpCompositorWithFakeHost::CreateFakeUpdate(
34 scoped_refptr<cc::Layer> root_layer) { 34 scoped_refptr<cc::Layer> root_layer) {
35 std::unique_ptr<cc::proto::CompositorMessage> message = 35 std::unique_ptr<cc::proto::CompositorMessage> message =
36 base::MakeUnique<cc::proto::CompositorMessage>(); 36 base::MakeUnique<cc::proto::CompositorMessage>();
37 message->set_client_state_update_ack(false); 37 message->set_client_state_update_ack(false);
38 cc::LayerTree* layer_tree = host()->GetLayerTree(); 38 cc::LayerTree* layer_tree = host()->GetLayerTree();
(...skipping 15 matching lines...) Expand all
54 host->InitializeForTesting( 54 host->InitializeForTesting(
55 cc::TaskRunnerProvider::Create(base::ThreadTaskRunnerHandle::Get(), 55 cc::TaskRunnerProvider::Create(base::ThreadTaskRunnerHandle::Get(),
56 base::ThreadTaskRunnerHandle::Get()), 56 base::ThreadTaskRunnerHandle::Get()),
57 base::MakeUnique<cc::FakeProxy>()); 57 base::MakeUnique<cc::FakeProxy>());
58 fake_host_ = host.get(); 58 fake_host_ = host.get();
59 return std::move(host); 59 return std::move(host);
60 } 60 }
61 61
62 } // namespace client 62 } // namespace client
63 } // namespace blimp 63 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/switches/blimp_client_switches.cc ('k') | blimp/engine/app/blimp_engine_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698