| Index: cc/trees/layer_tree_host_impl.h
|
| diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
|
| index 54776e77315b74a08c74c23351547aeb77b6bc73..6291789108df72d6309664260e0438c47d067ce1 100644
|
| --- a/cc/trees/layer_tree_host_impl.h
|
| +++ b/cc/trees/layer_tree_host_impl.h
|
| @@ -321,13 +321,15 @@ class CC_EXPORT LayerTreeHostImpl
|
| virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface);
|
| TileManager* tile_manager() { return tile_manager_.get(); }
|
|
|
| - void set_has_gpu_rasterization_trigger(bool flag) {
|
| + void SetHasGpuRasterizationTrigger(bool flag) {
|
| has_gpu_rasterization_trigger_ = flag;
|
| + UpdateGpuRasterizationStatus();
|
| }
|
| - void set_content_is_suitable_for_gpu_rasterization(bool flag) {
|
| + void SetContentIsSuitableForGpuRasterization(bool flag) {
|
| content_is_suitable_for_gpu_rasterization_ = flag;
|
| + UpdateGpuRasterizationStatus();
|
| }
|
| - void UpdateGpuRasterizationStatus();
|
| + void UpdateTreeResourcesForGpuRasterizationIfNeeded();
|
| bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
|
| bool use_msaa() const { return use_msaa_; }
|
|
|
| @@ -571,6 +573,8 @@ class CC_EXPORT LayerTreeHostImpl
|
| void ReleaseTreeResources();
|
| void RecreateTreeResources();
|
|
|
| + void UpdateGpuRasterizationStatus();
|
| +
|
| bool IsSynchronousSingleThreaded() const;
|
|
|
| Viewport* viewport() { return viewport_.get(); }
|
| @@ -646,6 +650,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| bool use_gpu_rasterization_;
|
| bool use_msaa_;
|
| GpuRasterizationStatus gpu_rasterization_status_;
|
| + bool tree_resources_for_gpu_rasterization_dirty_;
|
| scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_;
|
| scoped_ptr<ResourcePool> resource_pool_;
|
| scoped_ptr<ResourcePool> staging_resource_pool_;
|
|
|