| 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 19 matching lines...) Expand all Loading... |
| 30 RenderingStatsInstrumentation* stats_instrumentation); | 30 RenderingStatsInstrumentation* stats_instrumentation); |
| 31 | 31 |
| 32 void set_slow_down_raster_scale_factor(int factor) { | 32 void set_slow_down_raster_scale_factor(int factor) { |
| 33 slow_down_raster_scale_factor_for_debug_ = factor; | 33 slow_down_raster_scale_factor_for_debug_ = factor; |
| 34 } | 34 } |
| 35 | 35 |
| 36 void set_show_debug_picture_borders(bool show) { | 36 void set_show_debug_picture_borders(bool show) { |
| 37 show_debug_picture_borders_ = show; | 37 show_debug_picture_borders_ = show; |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool is_suitable_for_gpu_rasterization() const { |
| 41 return is_suitable_for_gpu_rasterization_; |
| 42 } |
| 43 void SetUnsuitableForGpuRasterizationForTesting() { |
| 44 is_suitable_for_gpu_rasterization_ = false; |
| 45 } |
| 46 |
| 40 protected: | 47 protected: |
| 41 virtual ~PicturePile(); | 48 virtual ~PicturePile(); |
| 42 | 49 |
| 43 private: | 50 private: |
| 44 friend class PicturePileImpl; | 51 friend class PicturePileImpl; |
| 45 | 52 |
| 53 bool is_suitable_for_gpu_rasterization_; |
| 54 |
| 46 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 55 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
| 47 }; | 56 }; |
| 48 | 57 |
| 49 } // namespace cc | 58 } // namespace cc |
| 50 | 59 |
| 51 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 60 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
| OLD | NEW |