OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CC_SURFACES_DISPLAY_H_ | 5 #ifndef CC_SURFACES_DISPLAY_H_ |
6 #define CC_SURFACES_DISPLAY_H_ | 6 #define CC_SURFACES_DISPLAY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 ~Display() override; | 67 ~Display() override; |
68 | 68 |
69 void Initialize(DisplayClient* client, | 69 void Initialize(DisplayClient* client, |
70 SurfaceManager* surface_manager, | 70 SurfaceManager* surface_manager, |
71 uint32_t compositor_surface_namespace); | 71 uint32_t compositor_surface_namespace); |
72 | 72 |
73 // device_scale_factor is used to communicate to the external window system | 73 // device_scale_factor is used to communicate to the external window system |
74 // what scale this was rendered at. | 74 // what scale this was rendered at. |
75 void SetSurfaceId(const SurfaceId& id, float device_scale_factor); | 75 void SetSurfaceId(const SurfaceId& id, float device_scale_factor); |
| 76 void SetVisible(bool visible); |
76 void Resize(const gfx::Size& new_size); | 77 void Resize(const gfx::Size& new_size); |
77 void SetColorSpace(const gfx::ColorSpace& color_space); | 78 void SetColorSpace(const gfx::ColorSpace& color_space); |
78 void SetExternalClip(const gfx::Rect& clip); | 79 void SetExternalClip(const gfx::Rect& clip); |
79 void SetExternalViewport(const gfx::Rect& viewport); | 80 void SetExternalViewport(const gfx::Rect& viewport); |
80 void SetOutputIsSecure(bool secure); | 81 void SetOutputIsSecure(bool secure); |
81 | 82 |
82 const SurfaceId& CurrentSurfaceId(); | 83 const SurfaceId& CurrentSurfaceId(); |
83 | 84 |
84 // DisplaySchedulerClient implementation. | 85 // DisplaySchedulerClient implementation. |
85 bool DrawAndSwap() override; | 86 bool DrawAndSwap() override; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 SoftwareRenderer* software_renderer_ = nullptr; | 151 SoftwareRenderer* software_renderer_ = nullptr; |
151 std::vector<ui::LatencyInfo> stored_latency_info_; | 152 std::vector<ui::LatencyInfo> stored_latency_info_; |
152 | 153 |
153 private: | 154 private: |
154 DISALLOW_COPY_AND_ASSIGN(Display); | 155 DISALLOW_COPY_AND_ASSIGN(Display); |
155 }; | 156 }; |
156 | 157 |
157 } // namespace cc | 158 } // namespace cc |
158 | 159 |
159 #endif // CC_SURFACES_DISPLAY_H_ | 160 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |