| 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; |
| 41 | 42 |
| 42 typedef std::pair<int, int> PictureMapKey; | 43 typedef std::pair<int, int> PictureMapKey; |
| 43 typedef base::hash_map<PictureMapKey, scoped_refptr<const Picture>> | 44 typedef base::hash_map<PictureMapKey, scoped_refptr<const Picture>> |
| 44 PictureMap; | 45 PictureMap; |
| 45 | 46 |
| 46 // An internal CanRaster check that goes to the picture_map rather than | 47 // An internal CanRaster check that goes to the picture_map rather than |
| 47 // using the recorded_viewport hint. | 48 // using the recorded_viewport hint. |
| 48 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; | 49 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; |
| 49 | 50 |
| 50 void Clear(); | 51 void Clear(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void SetBufferPixels(int buffer_pixels); | 97 void SetBufferPixels(int buffer_pixels); |
| 97 | 98 |
| 98 bool is_suitable_for_gpu_rasterization_; | 99 bool is_suitable_for_gpu_rasterization_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 101 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace cc | 104 } // namespace cc |
| 104 | 105 |
| 105 #endif // CC_PLAYBACK_PICTURE_PILE_H_ | 106 #endif // CC_PLAYBACK_PICTURE_PILE_H_ |
| OLD | NEW |