| 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_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 void FinishAllRendering(); | 181 void FinishAllRendering(); |
| 182 int SourceAnimationFrameNumber() const; | 182 int SourceAnimationFrameNumber() const; |
| 183 | 183 |
| 184 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); | 184 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); |
| 185 bool IsContextLost(); | 185 bool IsContextLost(); |
| 186 TileManager* tile_manager() { return tile_manager_.get(); } | 186 TileManager* tile_manager() { return tile_manager_.get(); } |
| 187 Renderer* renderer() { return renderer_.get(); } | 187 Renderer* renderer() { return renderer_.get(); } |
| 188 const RendererCapabilities& GetRendererCapabilities() const; | 188 const RendererCapabilities& GetRendererCapabilities() const; |
| 189 | 189 |
| 190 bool SwapBuffers(); | 190 virtual bool SwapBuffers(); |
| 191 | 191 |
| 192 void Readback(void* pixels, gfx::Rect rect_in_device_viewport); | 192 void Readback(void* pixels, gfx::Rect rect_in_device_viewport); |
| 193 | 193 |
| 194 LayerTreeImpl* active_tree() { return active_tree_.get(); } | 194 LayerTreeImpl* active_tree() { return active_tree_.get(); } |
| 195 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } | 195 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } |
| 196 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } | 196 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } |
| 197 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } | 197 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } |
| 198 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } | 198 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } |
| 199 void CreatePendingTree(); | 199 void CreatePendingTree(); |
| 200 void CheckForCompletedTileUploads(); | 200 void CheckForCompletedTileUploads(); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 base::TimeTicks current_frame_time_; | 437 base::TimeTicks current_frame_time_; |
| 438 | 438 |
| 439 scoped_ptr<AnimationRegistrar> animation_registrar_; | 439 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 440 | 440 |
| 441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 442 }; | 442 }; |
| 443 | 443 |
| 444 } // namespace cc | 444 } // namespace cc |
| 445 | 445 |
| 446 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 446 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |