Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4086)

Unified Diff: cc/proto/image_serialization_processor.h

Issue 1982893002: [blimp] Add SkPicture caching support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git merge origin/master Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..2bdc6571ac543ab2d3cdf75ab4697df7beb838ae 100644
--- a/cc/proto/image_serialization_processor.h
+++ b/cc/proto/image_serialization_processor.h
@@ -5,23 +5,20 @@
#ifndef CC_PROTO_IMAGE_SERIALIZATION_PROCESSOR_H_
#define CC_PROTO_IMAGE_SERIALIZATION_PROCESSOR_H_
+#include "base/memory/ptr_util.h"
+#include "cc/proto/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;
-
- // 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

Powered by Google App Engine
This is Rietveld 408576698