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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 const gfx::Rect& viewport_rect_for_tile_priority, | 346 const gfx::Rect& viewport_rect_for_tile_priority, |
347 const gfx::Transform& transform_for_tile_priority, | 347 const gfx::Transform& transform_for_tile_priority, |
348 bool resourceless_software_draw) override; | 348 bool resourceless_software_draw) override; |
349 void DidLoseOutputSurface() override; | 349 void DidLoseOutputSurface() override; |
350 void DidSwapBuffers() override; | 350 void DidSwapBuffers() override; |
351 void DidSwapBuffersComplete() override; | 351 void DidSwapBuffersComplete() override; |
352 void ReclaimResources(const CompositorFrameAck* ack) override; | 352 void ReclaimResources(const CompositorFrameAck* ack) override; |
353 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; | 353 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; |
354 void SetTreeActivationCallback(const base::Closure& callback) override; | 354 void SetTreeActivationCallback(const base::Closure& callback) override; |
355 void OnDraw() override; | 355 void OnDraw() override; |
| 356 void ForceSwap() override; |
356 | 357 |
357 // Called from LayerTreeImpl. | 358 // Called from LayerTreeImpl. |
358 void OnCanDrawStateChangedForTree(); | 359 void OnCanDrawStateChangedForTree(); |
359 | 360 |
360 // Implementation. | 361 // Implementation. |
361 int id() const { return id_; } | 362 int id() const { return id_; } |
362 bool CanDraw() const; | 363 bool CanDraw() const; |
363 OutputSurface* output_surface() const { return output_surface_.get(); } | 364 OutputSurface* output_surface() const { return output_surface_.get(); } |
364 | 365 |
365 std::string LayerTreeAsJson() const; | 366 std::string LayerTreeAsJson() const; |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 823 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
823 | 824 |
824 scoped_ptr<Viewport> viewport_; | 825 scoped_ptr<Viewport> viewport_; |
825 | 826 |
826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 827 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
827 }; | 828 }; |
828 | 829 |
829 } // namespace cc | 830 } // namespace cc |
830 | 831 |
831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 832 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |