| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 | 339 |
| 340 // VideoBeginFrameSource implementation. | 340 // VideoBeginFrameSource implementation. |
| 341 void AddVideoFrameController(VideoFrameController* controller) override; | 341 void AddVideoFrameController(VideoFrameController* controller) override; |
| 342 void RemoveVideoFrameController(VideoFrameController* controller) override; | 342 void RemoveVideoFrameController(VideoFrameController* controller) override; |
| 343 | 343 |
| 344 // OutputSurfaceClient implementation. | 344 // OutputSurfaceClient implementation. |
| 345 void CommitVSyncParameters(base::TimeTicks timebase, | 345 void CommitVSyncParameters(base::TimeTicks timebase, |
| 346 base::TimeDelta interval) override; | 346 base::TimeDelta interval) override; |
| 347 void SetNeedsRedrawRect(const gfx::Rect& rect) override; | 347 void SetNeedsRedrawRect(const gfx::Rect& rect) override; |
| 348 void SetExternalDrawConstraints( | 348 void SetExternalDrawConstraints( |
| 349 const gfx::Transform& transform, | |
| 350 const gfx::Rect& viewport, | |
| 351 const gfx::Rect& clip, | |
| 352 const gfx::Rect& viewport_rect_for_tile_priority, | 349 const gfx::Rect& viewport_rect_for_tile_priority, |
| 353 const gfx::Transform& transform_for_tile_priority, | 350 const gfx::Transform& transform_for_tile_priority) override; |
| 354 bool resourceless_software_draw) override; | |
| 355 void DidLoseOutputSurface() override; | 351 void DidLoseOutputSurface() override; |
| 356 void DidSwapBuffers() override; | 352 void DidSwapBuffers() override; |
| 357 void DidSwapBuffersComplete() override; | 353 void DidSwapBuffersComplete() override; |
| 358 void ReclaimResources(const CompositorFrameAck* ack) override; | 354 void ReclaimResources(const CompositorFrameAck* ack) override; |
| 359 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; | 355 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; |
| 360 void SetTreeActivationCallback(const base::Closure& callback) override; | 356 void SetTreeActivationCallback(const base::Closure& callback) override; |
| 361 void OnDraw() override; | 357 void OnDraw(const gfx::Transform& transform, |
| 358 const gfx::Rect& viewport, |
| 359 const gfx::Rect& clip, |
| 360 bool resourceless_software_draw) override; |
| 362 | 361 |
| 363 // Called from LayerTreeImpl. | 362 // Called from LayerTreeImpl. |
| 364 void OnCanDrawStateChangedForTree(); | 363 void OnCanDrawStateChangedForTree(); |
| 365 | 364 |
| 366 // Implementation. | 365 // Implementation. |
| 367 int id() const { return id_; } | 366 int id() const { return id_; } |
| 368 bool CanDraw() const; | 367 bool CanDraw() const; |
| 369 OutputSurface* output_surface() const { return output_surface_; } | 368 OutputSurface* output_surface() const { return output_surface_; } |
| 370 void ReleaseOutputSurface(); | 369 void ReleaseOutputSurface(); |
| 371 | 370 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 820 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 822 | 821 |
| 823 scoped_ptr<Viewport> viewport_; | 822 scoped_ptr<Viewport> viewport_; |
| 824 | 823 |
| 825 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 824 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 826 }; | 825 }; |
| 827 | 826 |
| 828 } // namespace cc | 827 } // namespace cc |
| 829 | 828 |
| 830 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 829 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |