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