OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_FAKE_PICTURE_PILE_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_PILE_H_ |
6 #define CC_TEST_FAKE_PICTURE_PILE_H_ | 6 #define CC_TEST_FAKE_PICTURE_PILE_H_ |
7 | 7 |
8 #include "cc/resources/picture_pile.h" | 8 #include "cc/resources/picture_pile.h" |
9 #include "cc/test/fake_content_layer_client.h" | 9 #include "cc/test/fake_content_layer_client.h" |
10 #include "cc/test/impl_side_painting_settings.h" | 10 #include "cc/test/impl_side_painting_settings.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 ~FakePicturePile() override {} | 27 ~FakePicturePile() override {} |
28 | 28 |
29 static scoped_ptr<FakePicturePile> CreateFilledPile( | 29 static scoped_ptr<FakePicturePile> CreateFilledPile( |
30 const gfx::Size& tile_size, | 30 const gfx::Size& tile_size, |
31 const gfx::Size& layer_bounds); | 31 const gfx::Size& layer_bounds); |
32 static scoped_ptr<FakePicturePile> CreateEmptyPile( | 32 static scoped_ptr<FakePicturePile> CreateEmptyPile( |
33 const gfx::Size& tile_size, | 33 const gfx::Size& tile_size, |
34 const gfx::Size& layer_bounds); | 34 const gfx::Size& layer_bounds); |
35 | 35 |
36 // PicturePile overrides. | 36 // PicturePile overrides. |
37 scoped_refptr<RasterSource> CreateRasterSource() const override; | 37 scoped_refptr<RasterSource> CreateRasterSource( |
| 38 bool can_use_lcd_text) const override; |
38 | 39 |
39 using PicturePile::buffer_pixels; | 40 using PicturePile::buffer_pixels; |
40 using PicturePile::CanRasterSlowTileCheck; | 41 using PicturePile::CanRasterSlowTileCheck; |
41 using PicturePile::Clear; | 42 using PicturePile::Clear; |
42 using PicturePile::SetMinContentsScale; | 43 using PicturePile::SetMinContentsScale; |
43 using PicturePile::SetTileGridSize; | 44 using PicturePile::SetTileGridSize; |
44 | 45 |
45 PictureMap& picture_map() { return picture_map_; } | 46 PictureMap& picture_map() { return picture_map_; } |
46 const gfx::Rect& recorded_viewport() const { return recorded_viewport_; } | 47 const gfx::Rect& recorded_viewport() const { return recorded_viewport_; } |
47 | 48 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 private: | 109 private: |
109 base::WaitableEvent* playback_allowed_event_; | 110 base::WaitableEvent* playback_allowed_event_; |
110 | 111 |
111 FakeContentLayerClient client_; | 112 FakeContentLayerClient client_; |
112 SkPaint default_paint_; | 113 SkPaint default_paint_; |
113 }; | 114 }; |
114 | 115 |
115 } // namespace cc | 116 } // namespace cc |
116 | 117 |
117 #endif // CC_TEST_FAKE_PICTURE_PILE_H_ | 118 #endif // CC_TEST_FAKE_PICTURE_PILE_H_ |
OLD | NEW |