| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 } | 254 } |
| 255 | 255 |
| 256 std::string LayerTreeAsJson() const; | 256 std::string LayerTreeAsJson() const; |
| 257 | 257 |
| 258 void FinishAllRendering(); | 258 void FinishAllRendering(); |
| 259 int SourceAnimationFrameNumber() const; | 259 int SourceAnimationFrameNumber() const; |
| 260 | 260 |
| 261 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); | 261 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); |
| 262 bool IsContextLost(); | 262 bool IsContextLost(); |
| 263 TileManager* tile_manager() { return tile_manager_.get(); } | 263 TileManager* tile_manager() { return tile_manager_.get(); } |
| 264 ResourcePool* resource_pool() { return resource_pool_.get(); } |
| 264 Renderer* renderer() { return renderer_.get(); } | 265 Renderer* renderer() { return renderer_.get(); } |
| 265 const RendererCapabilitiesImpl& GetRendererCapabilities() const; | 266 const RendererCapabilitiesImpl& GetRendererCapabilities() const; |
| 266 | 267 |
| 267 virtual bool SwapBuffers(const FrameData& frame); | 268 virtual bool SwapBuffers(const FrameData& frame); |
| 268 void SetNeedsBeginFrame(bool enable); | 269 void SetNeedsBeginFrame(bool enable); |
| 269 virtual void WillBeginImplFrame(const BeginFrameArgs& args); | 270 virtual void WillBeginImplFrame(const BeginFrameArgs& args); |
| 270 void DidModifyTilePriorities(); | 271 void DidModifyTilePriorities(); |
| 271 | 272 |
| 272 void Readback(void* pixels, const gfx::Rect& rect_in_device_viewport); | 273 void Readback(void* pixels, const gfx::Rect& rect_in_device_viewport); |
| 273 | 274 |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 int id_; | 656 int id_; |
| 656 | 657 |
| 657 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 658 | 659 |
| 659 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 } // namespace cc | 663 } // namespace cc |
| 663 | 664 |
| 664 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |