| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_RESOURCES_PICTURE_PILE_H_ | 5 #ifndef CC_RESOURCES_PICTURE_PILE_H_ |
| 6 #define CC_RESOURCES_PICTURE_PILE_H_ | 6 #define CC_RESOURCES_PICTURE_PILE_H_ |
| 7 | 7 |
| 8 #include "cc/resources/picture_pile_base.h" | 8 #include "cc/resources/picture_pile_base.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 bool is_suitable_for_gpu_rasterization() const { | 47 bool is_suitable_for_gpu_rasterization() const { |
| 48 return is_suitable_for_gpu_rasterization_; | 48 return is_suitable_for_gpu_rasterization_; |
| 49 } | 49 } |
| 50 void SetUnsuitableForGpuRasterizationForTesting() { | 50 void SetUnsuitableForGpuRasterizationForTesting() { |
| 51 is_suitable_for_gpu_rasterization_ = false; | 51 is_suitable_for_gpu_rasterization_ = false; |
| 52 } | 52 } |
| 53 | 53 |
| 54 void SetPixelRecordDistanceForTesting(int d) { pixel_record_distance_ = d; } | 54 void SetPixelRecordDistanceForTesting(int d) { pixel_record_distance_ = d; } |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 virtual ~PicturePile(); | 57 ~PicturePile() override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 friend class PicturePileImpl; | 60 friend class PicturePileImpl; |
| 61 | 61 |
| 62 void DetermineIfSolidColor(); | 62 void DetermineIfSolidColor(); |
| 63 | 63 |
| 64 bool is_suitable_for_gpu_rasterization_; | 64 bool is_suitable_for_gpu_rasterization_; |
| 65 int pixel_record_distance_; | 65 int pixel_record_distance_; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 67 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace cc | 70 } // namespace cc |
| 71 | 71 |
| 72 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 72 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
| OLD | NEW |