| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/aura/surface_binding.h" | 5 #include "mojo/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 "mojo/aura/window_tree_host_mojo.h" | 17 #include "mojo/aura/window_tree_host_mojo.h" |
| 18 #include "mojo/cc/context_provider_mojo.h" | 18 #include "mojo/cc/context_provider_mojo.h" |
| 19 #include "mojo/cc/output_surface_mojo.h" | 19 #include "mojo/cc/output_surface_mojo.h" |
| 20 #include "mojo/converters/geometry/geometry_type_converters.h" | 20 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 21 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 21 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
| 22 #include "mojo/public/cpp/application/connect.h" | 22 #include "mojo/public/cpp/application/connect.h" |
| 23 #include "mojo/public/interfaces/application/shell.mojom.h" | 23 #include "mojo/public/interfaces/application/shell.mojom.h" |
| 24 #include "mojo/services/public/interfaces/gpu/gpu.mojom.h" | 24 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" |
| 25 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" | 25 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" |
| 26 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h" | 26 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h" |
| 27 #include "mojo/services/view_manager/public/cpp/view.h" | 27 #include "mojo/services/view_manager/public/cpp/view.h" |
| 28 #include "mojo/services/view_manager/public/cpp/view_manager.h" | 28 #include "mojo/services/view_manager/public/cpp/view_manager.h" |
| 29 | 29 |
| 30 namespace mojo { | 30 namespace mojo { |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // SurfaceclientImpl ----------------------------------------------------------- | 33 // SurfaceclientImpl ----------------------------------------------------------- |
| 34 | 34 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 } | 243 } |
| 244 | 244 |
| 245 SurfaceBinding::~SurfaceBinding() { | 245 SurfaceBinding::~SurfaceBinding() { |
| 246 } | 246 } |
| 247 | 247 |
| 248 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { | 248 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { |
| 249 return state_->CreateOutputSurface(view_); | 249 return state_->CreateOutputSurface(view_); |
| 250 } | 250 } |
| 251 | 251 |
| 252 } // namespace mojo | 252 } // namespace mojo |
| OLD | NEW |