OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_TEST_FAKE_PICTURE_PILE_H_ |
| 6 #define CC_TEST_FAKE_PICTURE_PILE_H_ |
| 7 |
| 8 #include "cc/resources/picture_pile.h" |
| 9 |
| 10 namespace cc { |
| 11 class ThreadBlocker; |
| 12 |
| 13 class FakePicturePile : public PicturePile { |
| 14 public: |
| 15 explicit FakePicturePile(ThreadBlocker* blocker) |
| 16 : raster_thread_blocker_(blocker) {} |
| 17 virtual ~FakePicturePile() {} |
| 18 |
| 19 // PicturePile overrides. |
| 20 scoped_refptr<RasterSource> CreateRasterSource() const override; |
| 21 |
| 22 private: |
| 23 ThreadBlocker* raster_thread_blocker_; |
| 24 }; |
| 25 |
| 26 } // namespace cc |
| 27 |
| 28 #endif // CC_TEST_FAKE_PICTURE_PILE_H_ |
OLD | NEW |