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 "cc/output/output_surface.h" | 7 #include "cc/output/output_surface.h" |
8 #include "cc/resources/shared_bitmap_manager.h" | 8 #include "cc/resources/shared_bitmap_manager.h" |
9 #include "cc/surfaces/surface_id_allocator.h" | 9 #include "cc/surfaces/surface_id_allocator.h" |
10 #include "components/mus/public/cpp/window.h" | 10 #include "components/mus/public/cpp/window.h" |
11 #include "mojo/shell/public/interfaces/shell.mojom.h" | 11 #include "mojo/shell/public/interfaces/shell.mojom.h" |
12 #include "ui/compositor/reflector.h" | 12 #include "ui/compositor/reflector.h" |
13 #include "ui/gl/gl_bindings.h" | 13 #include "ui/gl/gl_bindings.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 namespace { | 16 namespace { |
17 | 17 |
18 class FakeReflector : public ui::Reflector { | 18 class FakeReflector : public ui::Reflector { |
19 public: | 19 public: |
20 FakeReflector() {} | 20 FakeReflector() {} |
21 ~FakeReflector() override {} | 21 ~FakeReflector() override {} |
22 void OnMirroringCompositorResized() override {} | 22 void OnMirroringCompositorResized() override {} |
23 void AddMirroringLayer(ui::Layer* layer) override {} | 23 void AddMirroringLayer(ui::Layer* layer) override {} |
24 void RemoveMirroringLayer(ui::Layer* layer) override {} | 24 void RemoveMirroringLayer(ui::Layer* layer) override {} |
25 }; | 25 }; |
26 | 26 |
27 } // namespace | 27 } // namespace |
28 | 28 |
29 SurfaceContextFactory::SurfaceContextFactory( | 29 SurfaceContextFactory::SurfaceContextFactory( |
30 mojo::shell::mojom::Shell* shell, | 30 mojo::Shell* shell, |
31 mus::Window* window, | 31 mus::Window* window, |
32 mus::mojom::SurfaceType surface_type) | 32 mus::mojom::SurfaceType surface_type) |
33 : surface_binding_(shell, window, surface_type), | 33 : surface_binding_(shell, window, surface_type), |
34 next_surface_id_namespace_(1u) {} | 34 next_surface_id_namespace_(1u) {} |
35 | 35 |
36 SurfaceContextFactory::~SurfaceContextFactory() {} | 36 SurfaceContextFactory::~SurfaceContextFactory() {} |
37 | 37 |
38 void SurfaceContextFactory::CreateOutputSurface( | 38 void SurfaceContextFactory::CreateOutputSurface( |
39 base::WeakPtr<ui::Compositor> compositor) { | 39 base::WeakPtr<ui::Compositor> compositor) { |
40 // NOTIMPLEMENTED(); | 40 // NOTIMPLEMENTED(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 return make_scoped_ptr( | 91 return make_scoped_ptr( |
92 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | 92 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); |
93 } | 93 } |
94 | 94 |
95 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, | 95 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, |
96 const gfx::Size& size) { | 96 const gfx::Size& size) { |
97 // NOTIMPLEMENTED(); | 97 // NOTIMPLEMENTED(); |
98 } | 98 } |
99 | 99 |
100 } // namespace views | 100 } // namespace views |
OLD | NEW |