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