OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_ | 5 #ifndef UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_ |
6 #define UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_ | 6 #define UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "cc/surfaces/frame_sink_id.h" | 10 #include "cc/surfaces/frame_sink_id.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 void OnWillRemoveChild(Window* child) override; | 32 void OnWillRemoveChild(Window* child) override; |
33 void OnWillMoveChild(size_t current_index, size_t dest_index) override; | 33 void OnWillMoveChild(size_t current_index, size_t dest_index) override; |
34 void OnVisibilityChanged(bool visible) override; | 34 void OnVisibilityChanged(bool visible) override; |
35 void OnDidChangeBounds(const gfx::Rect& old_bounds, | 35 void OnDidChangeBounds(const gfx::Rect& old_bounds, |
36 const gfx::Rect& new_bounds) override; | 36 const gfx::Rect& new_bounds) override; |
37 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( | 37 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( |
38 const void* key) override; | 38 const void* key) override; |
39 void OnPropertyChanged(const void* key, | 39 void OnPropertyChanged(const void* key, |
40 int64_t old_value, | 40 int64_t old_value, |
41 std::unique_ptr<ui::PropertyData> data) override; | 41 std::unique_ptr<ui::PropertyData> data) override; |
42 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink() override; | 42 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 43 scoped_refptr<cc::ContextProvider> context_provider, |
| 44 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) override; |
43 cc::SurfaceId GetSurfaceId() const override; | 45 cc::SurfaceId GetSurfaceId() const override; |
44 void OnWindowAddedToRootWindow() override; | 46 void OnWindowAddedToRootWindow() override; |
45 void OnWillRemoveWindowFromRootWindow() override; | 47 void OnWillRemoveWindowFromRootWindow() override; |
46 | 48 |
47 private: | 49 private: |
48 void OnSurfaceChanged(const cc::SurfaceId& surface_id, | 50 void OnSurfaceChanged(const cc::SurfaceId& surface_id, |
49 const gfx::Size& surface_size); | 51 const gfx::Size& surface_size); |
50 | 52 |
51 Window* const window_; | 53 Window* const window_; |
52 cc::FrameSinkId frame_sink_id_; | 54 cc::FrameSinkId frame_sink_id_; |
53 cc::LocalSurfaceId local_surface_id_; | 55 cc::LocalSurfaceId local_surface_id_; |
54 | 56 |
55 base::WeakPtrFactory<WindowPortLocal> weak_factory_; | 57 base::WeakPtrFactory<WindowPortLocal> weak_factory_; |
56 | 58 |
57 DISALLOW_COPY_AND_ASSIGN(WindowPortLocal); | 59 DISALLOW_COPY_AND_ASSIGN(WindowPortLocal); |
58 }; | 60 }; |
59 | 61 |
60 } // namespace aura | 62 } // namespace aura |
61 | 63 |
62 #endif // UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_ | 64 #endif // UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_ |
OLD | NEW |