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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; | 223 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; |
224 virtual void SetExternalDrawConstraints( | 224 virtual void SetExternalDrawConstraints( |
225 const gfx::Transform& transform, | 225 const gfx::Transform& transform, |
226 gfx::Rect viewport, | 226 gfx::Rect viewport, |
227 gfx::Rect clip, | 227 gfx::Rect clip, |
228 bool valid_for_tile_management) OVERRIDE; | 228 bool valid_for_tile_management) OVERRIDE; |
229 virtual void DidLoseOutputSurface() OVERRIDE; | 229 virtual void DidLoseOutputSurface() OVERRIDE; |
230 virtual void OnSwapBuffersComplete() OVERRIDE; | 230 virtual void OnSwapBuffersComplete() OVERRIDE; |
231 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE; | 231 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE; |
232 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; | 232 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; |
233 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE; | |
234 virtual void SetTreeActivationCallback(const base::Closure& callback) | 233 virtual void SetTreeActivationCallback(const base::Closure& callback) |
235 OVERRIDE; | 234 OVERRIDE; |
236 | 235 |
237 // Called from LayerTreeImpl. | 236 // Called from LayerTreeImpl. |
238 void OnCanDrawStateChangedForTree(); | 237 void OnCanDrawStateChangedForTree(); |
239 | 238 |
240 // Implementation. | 239 // Implementation. |
241 bool CanDraw() const; | 240 bool CanDraw() const; |
242 OutputSurface* output_surface() const { return output_surface_.get(); } | 241 OutputSurface* output_surface() const { return output_surface_.get(); } |
243 | 242 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 base::Closure tree_activation_callback_; | 624 base::Closure tree_activation_callback_; |
626 | 625 |
627 SharedBitmapManager* shared_bitmap_manager_; | 626 SharedBitmapManager* shared_bitmap_manager_; |
628 | 627 |
629 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 628 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
630 }; | 629 }; |
631 | 630 |
632 } // namespace cc | 631 } // namespace cc |
633 | 632 |
634 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 633 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |