| 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 "ui/views/mus/surface_binding.h" | 5 #include "ui/views/mus/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/mus/public/cpp/context_provider.h" | 17 #include "components/mus/public/cpp/context_provider.h" |
| 18 #include "components/mus/public/cpp/output_surface.h" | 18 #include "components/mus/public/cpp/output_surface.h" |
| 19 #include "components/mus/public/cpp/window.h" | 19 #include "components/mus/public/cpp/window.h" |
| 20 #include "components/mus/public/cpp/window_tree_connection.h" | 20 #include "components/mus/public/cpp/window_tree_connection.h" |
| 21 #include "components/mus/public/interfaces/gpu.mojom.h" | 21 #include "components/mus/public/interfaces/gpu.mojom.h" |
| 22 #include "mojo/application/public/cpp/connect.h" | 22 #include "mojo/application/public/cpp/connect.h" |
| 23 #include "mojo/application/public/interfaces/shell.mojom.h" | 23 #include "mojo/application/public/interfaces/shell.mojom.h" |
| 24 #include "mojo/converters/geometry/geometry_type_converters.h" | 24 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 25 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 25 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
| 26 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 26 #include "mojo/public/cpp/bindings/binding.h" |
| 27 #include "ui/views/mus/window_tree_host_mus.h" | 27 #include "ui/views/mus/window_tree_host_mus.h" |
| 28 | 28 |
| 29 namespace views { | 29 namespace views { |
| 30 namespace { | 30 namespace { |
| 31 void OnGotContentHandlerID(uint32_t content_handler_id) {} | 31 void OnGotContentHandlerID(uint32_t content_handler_id) {} |
| 32 } // namespace | 32 } // namespace |
| 33 | 33 |
| 34 // PerConnectionState ---------------------------------------------------------- | 34 // PerConnectionState ---------------------------------------------------------- |
| 35 | 35 |
| 36 // State needed per ViewManager. Provides the real implementation of | 36 // State needed per ViewManager. Provides the real implementation of |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 surface_type_(surface_type), | 142 surface_type_(surface_type), |
| 143 state_(PerConnectionState::Get(shell, window->connection())) {} | 143 state_(PerConnectionState::Get(shell, window->connection())) {} |
| 144 | 144 |
| 145 SurfaceBinding::~SurfaceBinding() {} | 145 SurfaceBinding::~SurfaceBinding() {} |
| 146 | 146 |
| 147 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { | 147 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { |
| 148 return state_->CreateOutputSurface(window_, surface_type_); | 148 return state_->CreateOutputSurface(window_, surface_type_); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace views | 151 } // namespace views |
| OLD | NEW |