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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/output/output_surface_client.h" | 9 #include "cc/output/output_surface_client.h" |
10 #include "cc/output/renderer.h" | 10 #include "cc/output/renderer.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class BlockingTaskRunner; | 23 class BlockingTaskRunner; |
24 class DirectRenderer; | 24 class DirectRenderer; |
25 class DisplayClient; | 25 class DisplayClient; |
26 class OutputSurface; | 26 class OutputSurface; |
27 class ResourceProvider; | 27 class ResourceProvider; |
28 class SharedBitmapManager; | 28 class SharedBitmapManager; |
29 class Surface; | 29 class Surface; |
30 class SurfaceAggregator; | 30 class SurfaceAggregator; |
31 class SurfaceIdAllocator; | 31 class SurfaceIdAllocator; |
32 class SurfaceFactory; | 32 class SurfaceFactory; |
| 33 class TextureMailboxDeleter; |
33 | 34 |
34 // A Display produces a surface that can be used to draw to a physical display | 35 // A Display produces a surface that can be used to draw to a physical display |
35 // (OutputSurface). The client is responsible for creating and sizing the | 36 // (OutputSurface). The client is responsible for creating and sizing the |
36 // surface IDs used to draw into the display and deciding when to draw. | 37 // surface IDs used to draw into the display and deciding when to draw. |
37 class CC_SURFACES_EXPORT Display : public OutputSurfaceClient, | 38 class CC_SURFACES_EXPORT Display : public OutputSurfaceClient, |
38 public RendererClient, | 39 public RendererClient, |
39 public SurfaceDamageObserver { | 40 public SurfaceDamageObserver { |
40 public: | 41 public: |
41 Display(DisplayClient* client, | 42 Display(DisplayClient* client, |
42 SurfaceManager* manager, | 43 SurfaceManager* manager, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 SurfaceManager* manager_; | 84 SurfaceManager* manager_; |
84 SharedBitmapManager* bitmap_manager_; | 85 SharedBitmapManager* bitmap_manager_; |
85 SurfaceId current_surface_id_; | 86 SurfaceId current_surface_id_; |
86 gfx::Size current_surface_size_; | 87 gfx::Size current_surface_size_; |
87 LayerTreeSettings settings_; | 88 LayerTreeSettings settings_; |
88 scoped_ptr<OutputSurface> output_surface_; | 89 scoped_ptr<OutputSurface> output_surface_; |
89 scoped_ptr<ResourceProvider> resource_provider_; | 90 scoped_ptr<ResourceProvider> resource_provider_; |
90 scoped_ptr<SurfaceAggregator> aggregator_; | 91 scoped_ptr<SurfaceAggregator> aggregator_; |
91 scoped_ptr<DirectRenderer> renderer_; | 92 scoped_ptr<DirectRenderer> renderer_; |
92 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_; | 93 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_; |
| 94 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; |
93 | 95 |
94 DISALLOW_COPY_AND_ASSIGN(Display); | 96 DISALLOW_COPY_AND_ASSIGN(Display); |
95 }; | 97 }; |
96 | 98 |
97 } // namespace cc | 99 } // namespace cc |
98 | 100 |
99 #endif // CC_SURFACES_DISPLAY_H_ | 101 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |