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/support/compositor/compositor_dependencies_impl.h" | 5 #include "blimp/client/support/compositor/compositor_dependencies_impl.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "blimp/client/support/compositor/blimp_context_provider.h" | 8 #include "blimp/client/support/compositor/blimp_context_provider.h" |
8 #include "blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.h" | 9 #include "blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.h" |
9 #include "blimp/client/support/compositor/blimp_layer_tree_settings.h" | 10 #include "blimp/client/support/compositor/blimp_layer_tree_settings.h" |
10 #include "cc/output/context_provider.h" | 11 #include "cc/output/context_provider.h" |
11 #include "cc/surfaces/surface_manager.h" | 12 #include "cc/surfaces/surface_manager.h" |
12 #include "cc/trees/layer_tree_settings.h" | 13 #include "cc/trees/layer_tree_settings.h" |
13 #include "gpu/ipc/common/surface_handle.h" | 14 #include "gpu/ipc/common/surface_handle.h" |
14 | 15 |
15 namespace blimp { | 16 namespace blimp { |
16 namespace client { | 17 namespace client { |
(...skipping 24 matching lines...) Expand all Loading... |
41 scoped_refptr<cc::ContextProvider> compositor_context = | 42 scoped_refptr<cc::ContextProvider> compositor_context = |
42 BlimpContextProvider::Create(gpu::kNullSurfaceHandle, | 43 BlimpContextProvider::Create(gpu::kNullSurfaceHandle, |
43 gpu_memory_buffer_manager_.get()); | 44 gpu_memory_buffer_manager_.get()); |
44 | 45 |
45 // TODO(khushalsagar): Make a worker context and bind to the current thread. | 46 // TODO(khushalsagar): Make a worker context and bind to the current thread. |
46 callback.Run(compositor_context, nullptr); | 47 callback.Run(compositor_context, nullptr); |
47 } | 48 } |
48 | 49 |
49 } // namespace client | 50 } // namespace client |
50 } // namespace blimp | 51 } // namespace blimp |
OLD | NEW |