| 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 <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 const gfx::Rect& viewport, | 251 const gfx::Rect& viewport, |
| 252 const gfx::Rect& clip, | 252 const gfx::Rect& clip, |
| 253 bool valid_for_tile_management) OVERRIDE; | 253 bool valid_for_tile_management) OVERRIDE; |
| 254 virtual void DidLoseOutputSurface() OVERRIDE; | 254 virtual void DidLoseOutputSurface() OVERRIDE; |
| 255 virtual void DidSwapBuffers() OVERRIDE; | 255 virtual void DidSwapBuffers() OVERRIDE; |
| 256 virtual void DidSwapBuffersComplete() OVERRIDE; | 256 virtual void DidSwapBuffersComplete() OVERRIDE; |
| 257 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE; | 257 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE; |
| 258 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; | 258 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; |
| 259 virtual void SetTreeActivationCallback(const base::Closure& callback) | 259 virtual void SetTreeActivationCallback(const base::Closure& callback) |
| 260 OVERRIDE; | 260 OVERRIDE; |
| 261 virtual int GetSourceFrameNumber() OVERRIDE; |
| 261 | 262 |
| 262 // Called from LayerTreeImpl. | 263 // Called from LayerTreeImpl. |
| 263 void OnCanDrawStateChangedForTree(); | 264 void OnCanDrawStateChangedForTree(); |
| 264 | 265 |
| 265 // Implementation. | 266 // Implementation. |
| 266 bool CanDraw() const; | 267 bool CanDraw() const; |
| 267 OutputSurface* output_surface() const { return output_surface_.get(); } | 268 OutputSurface* output_surface() const { return output_surface_.get(); } |
| 268 | 269 |
| 269 std::string LayerTreeAsJson() const; | 270 std::string LayerTreeAsJson() const; |
| 270 | 271 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 684 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 684 | 685 |
| 685 size_t transfer_buffer_memory_limit_; | 686 size_t transfer_buffer_memory_limit_; |
| 686 | 687 |
| 687 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 688 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 688 }; | 689 }; |
| 689 | 690 |
| 690 } // namespace cc | 691 } // namespace cc |
| 691 | 692 |
| 692 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 693 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |