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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 356 |
357 // Called from LayerTreeImpl. | 357 // Called from LayerTreeImpl. |
358 void OnCanDrawStateChangedForTree(); | 358 void OnCanDrawStateChangedForTree(); |
359 | 359 |
360 // Implementation. | 360 // Implementation. |
361 int id() const { return id_; } | 361 int id() const { return id_; } |
362 bool CanDraw() const; | 362 bool CanDraw() const; |
363 OutputSurface* output_surface() const { return output_surface_.get(); } | 363 OutputSurface* output_surface() const { return output_surface_.get(); } |
364 | 364 scoped_ptr<OutputSurface> GetOutputSurface(); |
365 std::string LayerTreeAsJson() const; | 365 std::string LayerTreeAsJson() const; |
366 | 366 |
367 void FinishAllRendering(); | 367 void FinishAllRendering(); |
368 | 368 |
369 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); | 369 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); |
370 TileManager* tile_manager() { return tile_manager_.get(); } | 370 TileManager* tile_manager() { return tile_manager_.get(); } |
371 | 371 |
372 void SetHasGpuRasterizationTrigger(bool flag) { | 372 void SetHasGpuRasterizationTrigger(bool flag) { |
373 has_gpu_rasterization_trigger_ = flag; | 373 has_gpu_rasterization_trigger_ = flag; |
374 UpdateGpuRasterizationStatus(); | 374 UpdateGpuRasterizationStatus(); |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 825 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
826 | 826 |
827 scoped_ptr<Viewport> viewport_; | 827 scoped_ptr<Viewport> viewport_; |
828 | 828 |
829 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 829 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
830 }; | 830 }; |
831 | 831 |
832 } // namespace cc | 832 } // namespace cc |
833 | 833 |
834 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 834 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |