OLD | NEW |
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 "base/threading/thread_task_runner_handle.h" |
7 #include "cc/animation/animation_host.h" | 8 #include "cc/animation/animation_host.h" |
8 #include "cc/proto/compositor_message.pb.h" | 9 #include "cc/proto/compositor_message.pb.h" |
9 #include "cc/test/fake_proxy.h" | 10 #include "cc/test/fake_proxy.h" |
10 | 11 |
11 namespace blimp { | 12 namespace blimp { |
12 namespace client { | 13 namespace client { |
13 | 14 |
14 // static | 15 // static |
15 std::unique_ptr<BlimpCompositorWithFakeHost> | 16 std::unique_ptr<BlimpCompositorWithFakeHost> |
16 BlimpCompositorWithFakeHost::Create( | 17 BlimpCompositorWithFakeHost::Create( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 host->InitializeForTesting( | 55 host->InitializeForTesting( |
55 cc::TaskRunnerProvider::Create(base::ThreadTaskRunnerHandle::Get(), | 56 cc::TaskRunnerProvider::Create(base::ThreadTaskRunnerHandle::Get(), |
56 base::ThreadTaskRunnerHandle::Get()), | 57 base::ThreadTaskRunnerHandle::Get()), |
57 base::MakeUnique<cc::FakeProxy>()); | 58 base::MakeUnique<cc::FakeProxy>()); |
58 fake_host_ = host.get(); | 59 fake_host_ = host.get(); |
59 return std::move(host); | 60 return std::move(host); |
60 } | 61 } |
61 | 62 |
62 } // namespace client | 63 } // namespace client |
63 } // namespace blimp | 64 } // namespace blimp |
OLD | NEW |