| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IMPL_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 
| 6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 
| 7 | 7 | 
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" | 
| 9 #include "cc/resources/picture_pile_impl.h" | 9 #include "cc/resources/picture_pile_impl.h" | 
| 10 #include "cc/test/fake_content_layer_client.h" | 10 #include "cc/test/fake_content_layer_client.h" | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 77 | 77 | 
| 78   int num_tiles_x() const { return tiling_.num_tiles_x(); } | 78   int num_tiles_x() const { return tiling_.num_tiles_x(); } | 
| 79   int num_tiles_y() const { return tiling_.num_tiles_y(); } | 79   int num_tiles_y() const { return tiling_.num_tiles_y(); } | 
| 80 | 80 | 
| 81   void SetMinContentsScale(float scale); | 81   void SetMinContentsScale(float scale); | 
| 82   void SetBufferPixels(int new_buffer_pixels); | 82   void SetBufferPixels(int new_buffer_pixels); | 
| 83   void Clear(); | 83   void Clear(); | 
| 84 | 84 | 
| 85  protected: | 85  protected: | 
| 86   FakePicturePileImpl(); | 86   FakePicturePileImpl(); | 
| 87   explicit FakePicturePileImpl(const PicturePileBase* other); | 87   explicit FakePicturePileImpl(const PicturePile* other); | 
| 88   ~FakePicturePileImpl() override; | 88   ~FakePicturePileImpl() override; | 
| 89 | 89 | 
| 90   FakeContentLayerClient client_; | 90   FakeContentLayerClient client_; | 
| 91   SkPaint default_paint_; | 91   SkPaint default_paint_; | 
| 92   SkTileGridFactory::TileGridInfo tile_grid_info_; | 92   SkTileGridFactory::TileGridInfo tile_grid_info_; | 
| 93 }; | 93 }; | 
| 94 | 94 | 
| 95 }  // namespace cc | 95 }  // namespace cc | 
| 96 | 96 | 
| 97 #endif  // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 97 #endif  // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 
| OLD | NEW | 
|---|