| 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 <stdint.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <utility> | 10 #include <utility> |
| 9 | 11 |
| 10 #include "base/bind.h" | 12 #include "base/bind.h" |
| 11 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/macros.h" |
| 12 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
| 13 #include "cc/output/compositor_frame.h" | 16 #include "cc/output/compositor_frame.h" |
| 14 #include "cc/output/output_surface.h" | 17 #include "cc/output/output_surface.h" |
| 15 #include "cc/output/output_surface_client.h" | 18 #include "cc/output/output_surface_client.h" |
| 16 #include "cc/output/software_output_device.h" | 19 #include "cc/output/software_output_device.h" |
| 17 #include "cc/resources/shared_bitmap_manager.h" | 20 #include "cc/resources/shared_bitmap_manager.h" |
| 18 #include "components/mus/public/cpp/context_provider.h" | 21 #include "components/mus/public/cpp/context_provider.h" |
| 19 #include "components/mus/public/cpp/output_surface.h" | 22 #include "components/mus/public/cpp/output_surface.h" |
| 20 #include "components/mus/public/cpp/window.h" | 23 #include "components/mus/public/cpp/window.h" |
| 21 #include "components/mus/public/cpp/window_tree_connection.h" | 24 #include "components/mus/public/cpp/window_tree_connection.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 surface_type_(surface_type), | 148 surface_type_(surface_type), |
| 146 state_(PerConnectionState::Get(shell, window->connection())) {} | 149 state_(PerConnectionState::Get(shell, window->connection())) {} |
| 147 | 150 |
| 148 SurfaceBinding::~SurfaceBinding() {} | 151 SurfaceBinding::~SurfaceBinding() {} |
| 149 | 152 |
| 150 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { | 153 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { |
| 151 return state_->CreateOutputSurface(window_, surface_type_); | 154 return state_->CreateOutputSurface(window_, surface_type_); |
| 152 } | 155 } |
| 153 | 156 |
| 154 } // namespace views | 157 } // namespace views |
| OLD | NEW |