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> ReleaseOutputSurface(); |
365 std::string LayerTreeAsJson() const; | 365 std::string LayerTreeAsJson() const; |
366 | 366 |
367 void FinishAllRendering(); | 367 void FinishAllRendering(); |
368 int RequestedMSAASampleCount() const; | 368 int RequestedMSAASampleCount() const; |
369 | 369 |
370 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); | 370 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); |
371 TileManager* tile_manager() { return tile_manager_.get(); } | 371 TileManager* tile_manager() { return tile_manager_.get(); } |
372 | 372 |
373 void SetHasGpuRasterizationTrigger(bool flag) { | 373 void SetHasGpuRasterizationTrigger(bool flag) { |
374 has_gpu_rasterization_trigger_ = flag; | 374 has_gpu_rasterization_trigger_ = flag; |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
823 | 823 |
824 scoped_ptr<Viewport> viewport_; | 824 scoped_ptr<Viewport> viewport_; |
825 | 825 |
826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
827 }; | 827 }; |
828 | 828 |
829 } // namespace cc | 829 } // namespace cc |
830 | 830 |
831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |