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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "cc/resources/picture_pile_base.h" | 9 #include "cc/resources/picture_pile_base.h" |
10 #include "cc/resources/recording_source.h" | 10 #include "cc/resources/recording_source.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 class ContentLayerClient; | 13 class ContentLayerClient; |
14 class PicturePileImpl; | 14 class PicturePileImpl; |
15 class Region; | 15 class Region; |
16 class RenderingStatsInstrumentation; | 16 class RenderingStatsInstrumentation; |
17 | 17 |
18 class CC_EXPORT PicturePile : public PicturePileBase, public RecordingSource { | 18 class CC_EXPORT PicturePile : public PicturePileBase, public RecordingSource { |
19 public: | 19 public: |
20 PicturePile(); | 20 PicturePile(); |
21 ~PicturePile() override; | 21 ~PicturePile() override; |
22 | 22 |
23 bool UpdateAndExpandInvalidation( | 23 bool UpdateAndExpandInvalidation( |
24 ContentLayerClient* painter, | 24 ContentLayerClient* painter, |
25 Region* invalidation, | 25 Region* invalidation, |
26 SkColor background_color, | 26 SkColor background_color, |
27 bool contents_opaque, | 27 bool contents_opaque, |
28 bool contents_fill_bounds_completely, | 28 bool contents_fill_bounds_completely, |
| 29 bool can_use_lcd_text, |
29 const gfx::Size& layer_size, | 30 const gfx::Size& layer_size, |
30 const gfx::Rect& visible_layer_rect, | 31 const gfx::Rect& visible_layer_rect, |
31 int frame_number, | 32 int frame_number, |
32 Picture::RecordingMode recording_mode) override; | 33 Picture::RecordingMode recording_mode) override; |
33 gfx::Size GetSize() const override; | 34 gfx::Size GetSize() const override; |
34 void SetEmptyBounds() override; | 35 void SetEmptyBounds() override; |
35 void SetMinContentsScale(float min_contents_scale) override; | 36 void SetMinContentsScale(float min_contents_scale) override; |
36 void SetTileGridSize(const gfx::Size& tile_grid_size) override; | 37 void SetTileGridSize(const gfx::Size& tile_grid_size) override; |
37 void SetSlowdownRasterScaleFactor(int factor) override; | 38 void SetSlowdownRasterScaleFactor(int factor) override; |
38 void SetShowDebugPictureBorders(bool show) override; | 39 void SetShowDebugPictureBorders(bool show) override; |
(...skipping 17 matching lines...) Expand all Loading... |
56 | 57 |
57 bool is_suitable_for_gpu_rasterization_; | 58 bool is_suitable_for_gpu_rasterization_; |
58 int pixel_record_distance_; | 59 int pixel_record_distance_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 61 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace cc | 64 } // namespace cc |
64 | 65 |
65 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 66 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
OLD | NEW |