OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mandoline/ui/aura/surface_binding.h" | 5 #include "mandoline/ui/aura/surface_binding.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/threading/thread_local.h" | 11 #include "base/threading/thread_local.h" |
12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
13 #include "cc/output/output_surface.h" | 13 #include "cc/output/output_surface.h" |
14 #include "cc/output/output_surface_client.h" | 14 #include "cc/output/output_surface_client.h" |
15 #include "cc/output/software_output_device.h" | 15 #include "cc/output/software_output_device.h" |
16 #include "cc/resources/shared_bitmap_manager.h" | 16 #include "cc/resources/shared_bitmap_manager.h" |
17 #include "components/view_manager/public/cpp/view.h" | 17 #include "components/mus/public/cpp/view.h" |
18 #include "components/view_manager/public/cpp/view_tree_connection.h" | 18 #include "components/mus/public/cpp/view_tree_connection.h" |
19 #include "components/view_manager/public/interfaces/gpu.mojom.h" | 19 #include "components/mus/public/interfaces/gpu.mojom.h" |
20 #include "mandoline/ui/aura/window_tree_host_mojo.h" | 20 #include "mandoline/ui/aura/window_tree_host_mojo.h" |
21 #include "mojo/application/public/cpp/connect.h" | 21 #include "mojo/application/public/cpp/connect.h" |
22 #include "mojo/application/public/interfaces/shell.mojom.h" | 22 #include "mojo/application/public/interfaces/shell.mojom.h" |
23 #include "mojo/cc/context_provider_mojo.h" | 23 #include "mojo/cc/context_provider_mojo.h" |
24 #include "mojo/cc/output_surface_mojo.h" | 24 #include "mojo/cc/output_surface_mojo.h" |
25 #include "mojo/converters/geometry/geometry_type_converters.h" | 25 #include "mojo/converters/geometry/geometry_type_converters.h" |
26 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 26 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
27 #include "mojo/public/cpp/bindings/binding.h" | 27 #include "mojo/public/cpp/bindings/binding.h" |
28 | 28 |
29 namespace mandoline { | 29 namespace mandoline { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 138 } |
139 | 139 |
140 SurfaceBinding::~SurfaceBinding() { | 140 SurfaceBinding::~SurfaceBinding() { |
141 } | 141 } |
142 | 142 |
143 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { | 143 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { |
144 return state_->CreateOutputSurface(view_); | 144 return state_->CreateOutputSurface(view_); |
145 } | 145 } |
146 | 146 |
147 } // namespace mandoline | 147 } // namespace mandoline |
OLD | NEW |