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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) OVERRIDE {} | 54 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) OVERRIDE {} |
55 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} | 55 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} |
56 virtual void DidSwapBuffers() OVERRIDE {} | 56 virtual void DidSwapBuffers() OVERRIDE {} |
57 virtual void DidSwapBuffersComplete() OVERRIDE {} | 57 virtual void DidSwapBuffersComplete() OVERRIDE {} |
58 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE {} | 58 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE {} |
59 virtual void DidLoseOutputSurface() OVERRIDE {} | 59 virtual void DidLoseOutputSurface() OVERRIDE {} |
60 virtual void SetExternalDrawConstraints( | 60 virtual void SetExternalDrawConstraints( |
61 const gfx::Transform& transform, | 61 const gfx::Transform& transform, |
62 const gfx::Rect& viewport, | 62 const gfx::Rect& viewport, |
63 const gfx::Rect& clip, | 63 const gfx::Rect& clip, |
64 bool valid_for_tile_management) OVERRIDE {} | 64 bool resourceless_software_draw) OVERRIDE {} |
65 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {} | 65 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {} |
66 virtual void SetTreeActivationCallback( | 66 virtual void SetTreeActivationCallback( |
67 const base::Closure& callback) OVERRIDE {} | 67 const base::Closure& callback) OVERRIDE {} |
68 | 68 |
69 // RendererClient implementation. | 69 // RendererClient implementation. |
70 virtual void SetFullRootLayerDamage() OVERRIDE {} | 70 virtual void SetFullRootLayerDamage() OVERRIDE {} |
71 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE {} | 71 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE {} |
72 | 72 |
73 private: | 73 private: |
74 void InitializeOutputSurface(); | 74 void InitializeOutputSurface(); |
75 | 75 |
76 DisplayClient* client_; | 76 DisplayClient* client_; |
77 SurfaceManager* manager_; | 77 SurfaceManager* manager_; |
78 SharedBitmapManager* bitmap_manager_; | 78 SharedBitmapManager* bitmap_manager_; |
79 SurfaceId current_surface_id_; | 79 SurfaceId current_surface_id_; |
80 gfx::Size current_surface_size_; | 80 gfx::Size current_surface_size_; |
81 LayerTreeSettings settings_; | 81 LayerTreeSettings settings_; |
82 scoped_ptr<OutputSurface> output_surface_; | 82 scoped_ptr<OutputSurface> output_surface_; |
83 scoped_ptr<ResourceProvider> resource_provider_; | 83 scoped_ptr<ResourceProvider> resource_provider_; |
84 scoped_ptr<SurfaceAggregator> aggregator_; | 84 scoped_ptr<SurfaceAggregator> aggregator_; |
85 scoped_ptr<DirectRenderer> renderer_; | 85 scoped_ptr<DirectRenderer> renderer_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(Display); | 87 DISALLOW_COPY_AND_ASSIGN(Display); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace cc | 90 } // namespace cc |
91 | 91 |
92 #endif // CC_SURFACES_DISPLAY_H_ | 92 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |