| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace cc { | 33 namespace cc { |
| 34 | 34 |
| 35 class BeginFrameSource; | 35 class BeginFrameSource; |
| 36 class DirectRenderer; | 36 class DirectRenderer; |
| 37 class DisplayClient; | 37 class DisplayClient; |
| 38 class OutputSurface; | 38 class OutputSurface; |
| 39 class RendererSettings; | 39 class RendererSettings; |
| 40 class ResourceProvider; | 40 class ResourceProvider; |
| 41 class SharedBitmapManager; | 41 class SharedBitmapManager; |
| 42 class SoftwareRenderer; |
| 42 class Surface; | 43 class Surface; |
| 43 class SurfaceAggregator; | 44 class SurfaceAggregator; |
| 44 class SurfaceIdAllocator; | 45 class SurfaceIdAllocator; |
| 45 class SurfaceFactory; | 46 class SurfaceFactory; |
| 46 class TextureMailboxDeleter; | 47 class TextureMailboxDeleter; |
| 47 | 48 |
| 48 // A Display produces a surface that can be used to draw to a physical display | 49 // A Display produces a surface that can be used to draw to a physical display |
| 49 // (OutputSurface). The client is responsible for creating and sizing the | 50 // (OutputSurface). The client is responsible for creating and sizing the |
| 50 // surface IDs used to draw into the display and deciding when to draw. | 51 // surface IDs used to draw into the display and deciding when to draw. |
| 51 class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient, | 52 class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 136 |
| 136 // The begin_frame_source_ is often known by the output_surface_ and | 137 // The begin_frame_source_ is often known by the output_surface_ and |
| 137 // the scheduler_. | 138 // the scheduler_. |
| 138 std::unique_ptr<BeginFrameSource> begin_frame_source_; | 139 std::unique_ptr<BeginFrameSource> begin_frame_source_; |
| 139 std::unique_ptr<OutputSurface> output_surface_; | 140 std::unique_ptr<OutputSurface> output_surface_; |
| 140 std::unique_ptr<DisplayScheduler> scheduler_; | 141 std::unique_ptr<DisplayScheduler> scheduler_; |
| 141 std::unique_ptr<ResourceProvider> resource_provider_; | 142 std::unique_ptr<ResourceProvider> resource_provider_; |
| 142 std::unique_ptr<SurfaceAggregator> aggregator_; | 143 std::unique_ptr<SurfaceAggregator> aggregator_; |
| 143 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; | 144 std::unique_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; |
| 144 std::unique_ptr<DirectRenderer> renderer_; | 145 std::unique_ptr<DirectRenderer> renderer_; |
| 146 SoftwareRenderer* software_renderer_ = nullptr; |
| 145 std::vector<ui::LatencyInfo> stored_latency_info_; | 147 std::vector<ui::LatencyInfo> stored_latency_info_; |
| 146 | 148 |
| 147 private: | 149 private: |
| 148 DISALLOW_COPY_AND_ASSIGN(Display); | 150 DISALLOW_COPY_AND_ASSIGN(Display); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 } // namespace cc | 153 } // namespace cc |
| 152 | 154 |
| 153 #endif // CC_SURFACES_DISPLAY_H_ | 155 #endif // CC_SURFACES_DISPLAY_H_ |
| OLD | NEW |