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_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| 6 #define CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| 7 |
| 8 #include "base/memory/ptr_util.h" |
| 9 #include "cc/blimp/client_picture_cache.h" |
| 10 #include "cc/blimp/engine_picture_cache.h" |
| 11 #include "third_party/skia/include/core/SkPicture.h" |
| 12 |
| 13 class SkPixelSerializer; |
| 14 |
| 15 namespace cc { |
| 16 |
| 17 // ImageSerializationProcessor provides functionality to serialize, |
| 18 // deserialize and cache Skia images. |
| 19 class ImageSerializationProcessor { |
| 20 public: |
| 21 virtual ~ImageSerializationProcessor() {} |
| 22 |
| 23 virtual std::unique_ptr<EnginePictureCache> CreateEnginePictureCache() = 0; |
| 24 virtual std::unique_ptr<ClientPictureCache> CreateClientPictureCache() = 0; |
| 25 }; |
| 26 |
| 27 } // namespace cc |
| 28 |
| 29 #endif // CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ |
OLD | NEW |