Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: ui/views/mus/surface_binding.cc

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/mus/screen_mus.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/threading/thread_local.h" 15 #include "base/threading/thread_local.h"
16 #include "cc/output/compositor_frame.h" 16 #include "cc/output/compositor_frame.h"
17 #include "cc/output/output_surface.h" 17 #include "cc/output/output_surface.h"
18 #include "cc/output/output_surface_client.h" 18 #include "cc/output/output_surface_client.h"
19 #include "cc/output/software_output_device.h" 19 #include "cc/output/software_output_device.h"
20 #include "cc/resources/shared_bitmap_manager.h" 20 #include "cc/resources/shared_bitmap_manager.h"
21 #include "components/mus/public/cpp/context_provider.h" 21 #include "components/mus/public/cpp/context_provider.h"
22 #include "components/mus/public/cpp/output_surface.h" 22 #include "components/mus/public/cpp/output_surface.h"
23 #include "components/mus/public/cpp/window.h" 23 #include "components/mus/public/cpp/window.h"
24 #include "components/mus/public/cpp/window_tree_connection.h" 24 #include "components/mus/public/cpp/window_tree_connection.h"
25 #include "components/mus/public/interfaces/gpu.mojom.h" 25 #include "components/mus/public/interfaces/gpu.mojom.h"
26 #include "mojo/converters/geometry/geometry_type_converters.h" 26 #include "mojo/converters/geometry/geometry_type_converters.h"
27 #include "mojo/converters/surfaces/surfaces_type_converters.h" 27 #include "mojo/converters/surfaces/surfaces_type_converters.h"
28 #include "mojo/public/cpp/bindings/binding.h" 28 #include "mojo/public/cpp/bindings/binding.h"
29 #include "mojo/shell/public/cpp/connector.h" 29 #include "services/shell/public/cpp/connector.h"
30 #include "ui/views/mus/window_tree_host_mus.h" 30 #include "ui/views/mus/window_tree_host_mus.h"
31 31
32 namespace views { 32 namespace views {
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
37 // CreateOutputSurface. SurfaceBinding obtains a pointer to the 37 // CreateOutputSurface. SurfaceBinding obtains a pointer to the
38 // PerConnectionState appropriate for the ViewManager. PerConnectionState is 38 // PerConnectionState appropriate for the ViewManager. PerConnectionState is
39 // stored in a thread local map. When no more refereces to a PerConnectionState 39 // stored in a thread local map. When no more refereces to a PerConnectionState
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 surface_type_(surface_type), 137 surface_type_(surface_type),
138 state_(PerConnectionState::Get(connector, window->connection())) {} 138 state_(PerConnectionState::Get(connector, window->connection())) {}
139 139
140 SurfaceBinding::~SurfaceBinding() {} 140 SurfaceBinding::~SurfaceBinding() {}
141 141
142 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() { 142 scoped_ptr<cc::OutputSurface> SurfaceBinding::CreateOutputSurface() {
143 return state_->CreateOutputSurface(window_, surface_type_); 143 return state_->CreateOutputSurface(window_, surface_type_);
144 } 144 }
145 145
146 } // namespace views 146 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mus/screen_mus.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698