Chromium Code Reviews| Index: cc/layers/picture_layer_impl.h |
| diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h |
| index b559e3d491af7ae4246907b22d6487759cc388bb..e82bdb10950963079ab2bc45e3b12548a28e4f58 100644 |
| --- a/cc/layers/picture_layer_impl.h |
| +++ b/cc/layers/picture_layer_impl.h |
| @@ -131,8 +131,7 @@ class CC_EXPORT PictureLayerImpl |
| virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE; |
| - void SetUseGpuRasterization(bool use_gpu); |
| - bool ShouldUseGpuRasterization() const { return use_gpu_rasterization_; } |
| + bool UseGpuRasterization() const; |
|
reveman
2014/05/08 21:51:30
should we just get rid of this completely and use
alokp
2014/05/08 22:44:41
I will prefer to keep this convenience function fo
reveman
2014/05/08 23:08:33
Ok in that case, could it be inlined and named use
alokp
2014/05/08 23:34:43
Done.
|
| // Functions used by tile manager. |
| void DidUnregisterLayer(); |
| @@ -151,7 +150,7 @@ class CC_EXPORT PictureLayerImpl |
| void ManageTilings(bool animating_transform_to_screen, |
| float maximum_animation_contents_scale); |
| bool ShouldHaveLowResTiling() const { |
| - return should_use_low_res_tiling_ && !ShouldUseGpuRasterization(); |
| + return should_use_low_res_tiling_ && !UseGpuRasterization(); |
| } |
| virtual bool ShouldAdjustRasterScale( |
| bool animating_transform_to_screen) const; |
| @@ -212,7 +211,6 @@ class CC_EXPORT PictureLayerImpl |
| // after a CalculateContentsScale/ManageTilings. |
| bool should_update_tile_priorities_; |
| bool should_use_low_res_tiling_; |
| - bool use_gpu_rasterization_; |
| bool layer_needs_to_register_itself_; |