| Index: cc/proto/image_serialization_processor.h
|
| diff --git a/cc/proto/image_serialization_processor.h b/cc/proto/image_serialization_processor.h
|
| index 2827eb4587c3daa2d1fea203536fc776bf800653..21d6c7c25f043dfacebb7fa59c118921e58b1c0e 100644
|
| --- a/cc/proto/image_serialization_processor.h
|
| +++ b/cc/proto/image_serialization_processor.h
|
| @@ -5,23 +5,23 @@
|
| #ifndef CC_PROTO_IMAGE_SERIALIZATION_PROCESSOR_H_
|
| #define CC_PROTO_IMAGE_SERIALIZATION_PROCESSOR_H_
|
|
|
| +#include "base/memory/ptr_util.h"
|
| +#include "cc/proto/client_picture_cache.h"
|
| +#include "cc/proto/engine_picture_cache.h"
|
| #include "third_party/skia/include/core/SkPicture.h"
|
|
|
| class SkPixelSerializer;
|
|
|
| namespace cc {
|
|
|
| -// ImageSerializationProcessor provides functionality to serialize and
|
| -// deserialize Skia images.
|
| +// ImageSerializationProcessor provides functionality to serialize,
|
| +// deserialize and cache Skia images.
|
| class ImageSerializationProcessor {
|
| public:
|
| - // The serializer returned from this function can be used to pass in to
|
| - // SkPicture::serialize(...) for serializing the SkPicture to a stream.
|
| - virtual SkPixelSerializer* GetPixelSerializer() = 0;
|
| + virtual ~ImageSerializationProcessor() {}
|
|
|
| - // Returns a function pointer valid to use for deserializing images when using
|
| - // SkPicture::CreateFromStream to create an SkPicture from a stream.
|
| - virtual SkPicture::InstallPixelRefProc GetPixelDeserializer() = 0;
|
| + virtual std::unique_ptr<EnginePictureCache> CreateEnginePictureCache() = 0;
|
| + virtual std::unique_ptr<ClientPictureCache> CreateClientPictureCache() = 0;
|
| };
|
|
|
| } // namespace cc
|
|
|