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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const gfx::Rect& clip, | 64 const gfx::Rect& clip, |
65 const gfx::Rect& viewport_rect_for_tile_priority, | 65 const gfx::Rect& viewport_rect_for_tile_priority, |
66 const gfx::Transform& transform_for_tile_priority, | 66 const gfx::Transform& transform_for_tile_priority, |
67 bool resourceless_software_draw) OVERRIDE {} | 67 bool resourceless_software_draw) OVERRIDE {} |
68 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {} | 68 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {} |
69 virtual void SetTreeActivationCallback( | 69 virtual void SetTreeActivationCallback( |
70 const base::Closure& callback) OVERRIDE {} | 70 const base::Closure& callback) OVERRIDE {} |
71 | 71 |
72 // RendererClient implementation. | 72 // RendererClient implementation. |
73 virtual void SetFullRootLayerDamage() OVERRIDE {} | 73 virtual void SetFullRootLayerDamage() OVERRIDE {} |
74 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE {} | |
75 | 74 |
76 // SurfaceDamageObserver implementation. | 75 // SurfaceDamageObserver implementation. |
77 virtual void OnSurfaceDamaged(SurfaceId surface) OVERRIDE; | 76 virtual void OnSurfaceDamaged(SurfaceId surface) OVERRIDE; |
78 | 77 |
79 private: | 78 private: |
80 void InitializeOutputSurface(); | 79 void InitializeOutputSurface(); |
81 | 80 |
82 DisplayClient* client_; | 81 DisplayClient* client_; |
83 SurfaceManager* manager_; | 82 SurfaceManager* manager_; |
84 SharedBitmapManager* bitmap_manager_; | 83 SharedBitmapManager* bitmap_manager_; |
85 SurfaceId current_surface_id_; | 84 SurfaceId current_surface_id_; |
86 gfx::Size current_surface_size_; | 85 gfx::Size current_surface_size_; |
87 LayerTreeSettings settings_; | 86 LayerTreeSettings settings_; |
88 scoped_ptr<OutputSurface> output_surface_; | 87 scoped_ptr<OutputSurface> output_surface_; |
89 scoped_ptr<ResourceProvider> resource_provider_; | 88 scoped_ptr<ResourceProvider> resource_provider_; |
90 scoped_ptr<SurfaceAggregator> aggregator_; | 89 scoped_ptr<SurfaceAggregator> aggregator_; |
91 scoped_ptr<DirectRenderer> renderer_; | 90 scoped_ptr<DirectRenderer> renderer_; |
92 | 91 |
93 std::set<SurfaceId> contained_surfaces_; | 92 std::set<SurfaceId> contained_surfaces_; |
94 | 93 |
95 DISALLOW_COPY_AND_ASSIGN(Display); | 94 DISALLOW_COPY_AND_ASSIGN(Display); |
96 }; | 95 }; |
97 | 96 |
98 } // namespace cc | 97 } // namespace cc |
99 | 98 |
100 #endif // CC_SURFACES_DISPLAY_H_ | 99 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |