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( | 37 scoped_refptr<RasterSource> CreateRasterSource() const override; |
38 bool can_use_lcd_text) const override; | |
39 | 38 |
40 using PicturePile::buffer_pixels; | 39 using PicturePile::buffer_pixels; |
41 using PicturePile::CanRasterSlowTileCheck; | 40 using PicturePile::CanRasterSlowTileCheck; |
42 using PicturePile::Clear; | 41 using PicturePile::Clear; |
43 using PicturePile::SetMinContentsScale; | 42 using PicturePile::SetMinContentsScale; |
44 using PicturePile::SetTileGridSize; | 43 using PicturePile::SetTileGridSize; |
45 | 44 |
46 PictureMap& picture_map() { return picture_map_; } | 45 PictureMap& picture_map() { return picture_map_; } |
47 const gfx::Rect& recorded_viewport() const { return recorded_viewport_; } | 46 const gfx::Rect& recorded_viewport() const { return recorded_viewport_; } |
48 | 47 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 private: | 108 private: |
110 base::WaitableEvent* playback_allowed_event_; | 109 base::WaitableEvent* playback_allowed_event_; |
111 | 110 |
112 FakeContentLayerClient client_; | 111 FakeContentLayerClient client_; |
113 SkPaint default_paint_; | 112 SkPaint default_paint_; |
114 }; | 113 }; |
115 | 114 |
116 } // namespace cc | 115 } // namespace cc |
117 | 116 |
118 #endif // CC_TEST_FAKE_PICTURE_PILE_H_ | 117 #endif // CC_TEST_FAKE_PICTURE_PILE_H_ |
OLD | NEW |