OLD | NEW |
| (Empty) |
1 // Copyright 2016 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_IMAGE_SERIALIZATION_PROCESSOR_H_ | |
6 #define CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "cc/blimp/client_picture_cache.h" | |
12 #include "cc/blimp/engine_picture_cache.h" | |
13 #include "cc/blimp/image_serialization_processor.h" | |
14 #include "cc/test/picture_cache_model.h" | |
15 | |
16 namespace cc { | |
17 | |
18 class FakeImageSerializationProcessor : public ImageSerializationProcessor { | |
19 public: | |
20 FakeImageSerializationProcessor(); | |
21 ~FakeImageSerializationProcessor() override; | |
22 | |
23 // ImageSerializationProcessor implementation. | |
24 std::unique_ptr<EnginePictureCache> CreateEnginePictureCache() override; | |
25 std::unique_ptr<ClientPictureCache> CreateClientPictureCache() override; | |
26 | |
27 private: | |
28 // A PictureCacheModel shared between both the engine and client cache. | |
29 std::unique_ptr<PictureCacheModel> picture_cache_model_; | |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(FakeImageSerializationProcessor); | |
32 }; | |
33 | |
34 } // namespace cc | |
35 | |
36 #endif // CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_ | |
OLD | NEW |