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_PLAYBACK_PICTURE_PILE_H_ | 5 #ifndef CC_PLAYBACK_PICTURE_PILE_H_ |
6 #define CC_PLAYBACK_PICTURE_PILE_H_ | 6 #define CC_PLAYBACK_PICTURE_PILE_H_ |
7 | 7 |
8 #include <bitset> | 8 #include <bitset> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 20 matching lines...) Expand all Loading... |
31 RecordingMode recording_mode) override; | 31 RecordingMode recording_mode) override; |
32 scoped_refptr<RasterSource> CreateRasterSource( | 32 scoped_refptr<RasterSource> CreateRasterSource( |
33 bool can_use_lcd_text) const override; | 33 bool can_use_lcd_text) const override; |
34 gfx::Size GetSize() const final; | 34 gfx::Size GetSize() const final; |
35 void SetEmptyBounds() override; | 35 void SetEmptyBounds() override; |
36 void SetSlowdownRasterScaleFactor(int factor) override; | 36 void SetSlowdownRasterScaleFactor(int factor) override; |
37 void SetGatherDiscardableImages(bool gather_images) override; | 37 void SetGatherDiscardableImages(bool gather_images) override; |
38 void SetBackgroundColor(SkColor background_color) override; | 38 void SetBackgroundColor(SkColor background_color) override; |
39 void SetRequiresClear(bool requires_clear) override; | 39 void SetRequiresClear(bool requires_clear) override; |
40 bool IsSuitableForGpuRasterization() const override; | 40 bool IsSuitableForGpuRasterization() const override; |
41 void SetUnsuitableForGpuRasterizationForTesting() override; | |
42 | 41 |
43 typedef std::pair<int, int> PictureMapKey; | 42 typedef std::pair<int, int> PictureMapKey; |
44 typedef base::hash_map<PictureMapKey, scoped_refptr<const Picture>> | 43 typedef base::hash_map<PictureMapKey, scoped_refptr<const Picture>> |
45 PictureMap; | 44 PictureMap; |
46 | 45 |
47 // An internal CanRaster check that goes to the picture_map rather than | 46 // An internal CanRaster check that goes to the picture_map rather than |
48 // using the recorded_viewport hint. | 47 // using the recorded_viewport hint. |
49 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; | 48 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; |
50 | 49 |
51 void Clear(); | 50 void Clear(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void SetBufferPixels(int buffer_pixels); | 96 void SetBufferPixels(int buffer_pixels); |
98 | 97 |
99 bool is_suitable_for_gpu_rasterization_; | 98 bool is_suitable_for_gpu_rasterization_; |
100 | 99 |
101 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 100 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
102 }; | 101 }; |
103 | 102 |
104 } // namespace cc | 103 } // namespace cc |
105 | 104 |
106 #endif // CC_PLAYBACK_PICTURE_PILE_H_ | 105 #endif // CC_PLAYBACK_PICTURE_PILE_H_ |
OLD | NEW |