| 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 <bitset> | 8 #include <bitset> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 PicturePile(float min_contents_scale, const gfx::Size& tile_grid_size); | 22 PicturePile(float min_contents_scale, const gfx::Size& tile_grid_size); |
| 23 ~PicturePile() override; | 23 ~PicturePile() override; |
| 24 | 24 |
| 25 // RecordingSource overrides. | 25 // RecordingSource overrides. |
| 26 bool UpdateAndExpandInvalidation(ContentLayerClient* painter, | 26 bool UpdateAndExpandInvalidation(ContentLayerClient* painter, |
| 27 Region* invalidation, | 27 Region* invalidation, |
| 28 const gfx::Size& layer_size, | 28 const gfx::Size& layer_size, |
| 29 const gfx::Rect& visible_layer_rect, | 29 const gfx::Rect& visible_layer_rect, |
| 30 int frame_number, | 30 int frame_number, |
| 31 RecordingMode recording_mode) override; | 31 RecordingMode recording_mode, |
| 32 int* recorded_area) override; |
| 32 scoped_refptr<RasterSource> CreateRasterSource( | 33 scoped_refptr<RasterSource> CreateRasterSource( |
| 33 bool can_use_lcd_text) const override; | 34 bool can_use_lcd_text) const override; |
| 34 gfx::Size GetSize() const final; | 35 gfx::Size GetSize() const final; |
| 35 void SetEmptyBounds() override; | 36 void SetEmptyBounds() override; |
| 36 void SetSlowdownRasterScaleFactor(int factor) override; | 37 void SetSlowdownRasterScaleFactor(int factor) override; |
| 37 void SetGatherPixelRefs(bool gather_pixel_refs) override; | 38 void SetGatherPixelRefs(bool gather_pixel_refs) override; |
| 38 void SetBackgroundColor(SkColor background_color) override; | 39 void SetBackgroundColor(SkColor background_color) override; |
| 39 void SetRequiresClear(bool requires_clear) override; | 40 void SetRequiresClear(bool requires_clear) override; |
| 40 bool IsSuitableForGpuRasterization() const override; | 41 bool IsSuitableForGpuRasterization() const override; |
| 41 void SetUnsuitableForGpuRasterizationForTesting() override; | 42 void SetUnsuitableForGpuRasterizationForTesting() override; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void SetBufferPixels(int buffer_pixels); | 102 void SetBufferPixels(int buffer_pixels); |
| 102 | 103 |
| 103 bool is_suitable_for_gpu_rasterization_; | 104 bool is_suitable_for_gpu_rasterization_; |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 106 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace cc | 109 } // namespace cc |
| 109 | 110 |
| 110 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 111 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
| OLD | NEW |