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_context_factory.h" | 5 #include "ui/views/mus/surface_context_factory.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/output/output_surface.h" | 8 #include "cc/output/output_surface.h" |
9 #include "cc/resources/shared_bitmap_manager.h" | 9 #include "cc/resources/shared_bitmap_manager.h" |
10 #include "cc/surfaces/surface_id_allocator.h" | 10 #include "cc/surfaces/surface_id_allocator.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 FakeReflector() {} | 21 FakeReflector() {} |
22 ~FakeReflector() override {} | 22 ~FakeReflector() override {} |
23 void OnMirroringCompositorResized() override {} | 23 void OnMirroringCompositorResized() override {} |
24 void AddMirroringLayer(ui::Layer* layer) override {} | 24 void AddMirroringLayer(ui::Layer* layer) override {} |
25 void RemoveMirroringLayer(ui::Layer* layer) override {} | 25 void RemoveMirroringLayer(ui::Layer* layer) override {} |
26 }; | 26 }; |
27 | 27 |
28 } // namespace | 28 } // namespace |
29 | 29 |
30 SurfaceContextFactory::SurfaceContextFactory( | 30 SurfaceContextFactory::SurfaceContextFactory( |
31 mojo::Connector* connector, | 31 shell::Connector* connector, |
32 mus::Window* window, | 32 mus::Window* window, |
33 mus::mojom::SurfaceType surface_type) | 33 mus::mojom::SurfaceType surface_type) |
34 : surface_binding_(connector, window, surface_type), | 34 : surface_binding_(connector, window, surface_type), |
35 next_surface_id_namespace_(1u) {} | 35 next_surface_id_namespace_(1u) {} |
36 | 36 |
37 SurfaceContextFactory::~SurfaceContextFactory() {} | 37 SurfaceContextFactory::~SurfaceContextFactory() {} |
38 | 38 |
39 void SurfaceContextFactory::CreateOutputSurface( | 39 void SurfaceContextFactory::CreateOutputSurface( |
40 base::WeakPtr<ui::Compositor> compositor) { | 40 base::WeakPtr<ui::Compositor> compositor) { |
41 // NOTIMPLEMENTED(); | 41 // NOTIMPLEMENTED(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 return base::WrapUnique( | 92 return base::WrapUnique( |
93 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | 93 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); |
94 } | 94 } |
95 | 95 |
96 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, | 96 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, |
97 const gfx::Size& size) { | 97 const gfx::Size& size) { |
98 // NOTIMPLEMENTED(); | 98 // NOTIMPLEMENTED(); |
99 } | 99 } |
100 | 100 |
101 } // namespace views | 101 } // namespace views |
OLD | NEW |