| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 std::unique_ptr<OutputSurface> output_surface, | 60 std::unique_ptr<OutputSurface> output_surface, |
| 61 std::unique_ptr<DisplayScheduler> scheduler, | 61 std::unique_ptr<DisplayScheduler> scheduler, |
| 62 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter); | 62 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter); |
| 63 | 63 |
| 64 ~Display() override; | 64 ~Display() override; |
| 65 | 65 |
| 66 void Initialize(DisplayClient* client, SurfaceManager* surface_manager); | 66 void Initialize(DisplayClient* client, SurfaceManager* surface_manager); |
| 67 | 67 |
| 68 // device_scale_factor is used to communicate to the external window system | 68 // device_scale_factor is used to communicate to the external window system |
| 69 // what scale this was rendered at. | 69 // what scale this was rendered at. |
| 70 void SetLocalFrameId(const LocalFrameId& id, float device_scale_factor); | 70 void SetLocalSurfaceId(const LocalSurfaceId& id, float device_scale_factor); |
| 71 void SetVisible(bool visible); | 71 void SetVisible(bool visible); |
| 72 void Resize(const gfx::Size& new_size); | 72 void Resize(const gfx::Size& new_size); |
| 73 void SetColorSpace(const gfx::ColorSpace& color_space); | 73 void SetColorSpace(const gfx::ColorSpace& color_space); |
| 74 void SetOutputIsSecure(bool secure); | 74 void SetOutputIsSecure(bool secure); |
| 75 | 75 |
| 76 const SurfaceId& CurrentSurfaceId(); | 76 const SurfaceId& CurrentSurfaceId(); |
| 77 | 77 |
| 78 // DisplaySchedulerClient implementation. | 78 // DisplaySchedulerClient implementation. |
| 79 bool DrawAndSwap() override; | 79 bool DrawAndSwap() override; |
| 80 | 80 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 SoftwareRenderer* software_renderer_ = nullptr; | 125 SoftwareRenderer* software_renderer_ = nullptr; |
| 126 std::vector<ui::LatencyInfo> stored_latency_info_; | 126 std::vector<ui::LatencyInfo> stored_latency_info_; |
| 127 | 127 |
| 128 private: | 128 private: |
| 129 DISALLOW_COPY_AND_ASSIGN(Display); | 129 DISALLOW_COPY_AND_ASSIGN(Display); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace cc | 132 } // namespace cc |
| 133 | 133 |
| 134 #endif // CC_SURFACES_DISPLAY_H_ | 134 #endif // CC_SURFACES_DISPLAY_H_ |
| OLD | NEW |