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

Unified Diff: cc/test/fake_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/test/fake_image_serialization_processor.h
diff --git a/cc/test/fake_image_serialization_processor.h b/cc/test/fake_image_serialization_processor.h
index 613e93b1356ab2b08cbfb8cee6d3a92f13071e84..e4e8bf408c28eb4706f0819ac742b6304bcc9643 100644
--- a/cc/test/fake_image_serialization_processor.h
+++ b/cc/test/fake_image_serialization_processor.h
@@ -6,7 +6,10 @@
#define CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "cc/proto/image_serialization_processor.h"
+#include "cc/proto/picture_cache.h"
+#include "cc/test/fake_picture_cache.h"
class SkPixelSerializer;
@@ -18,10 +21,13 @@ class FakeImageSerializationProcessor : public ImageSerializationProcessor {
~FakeImageSerializationProcessor();
// ImageSerializationProcessor implementation.
- SkPixelSerializer* GetPixelSerializer() override;
- SkPicture::InstallPixelRefProc GetPixelDeserializer() override;
+ std::unique_ptr<EnginePictureCache> CreateEnginePictureCache() override;
+ std::unique_ptr<ClientPictureCache> CreateClientPictureCache() override;
private:
+ // A PictureCacheModel shared between both the engine and client cache.
+ std::unique_ptr<FakePictureCacheModel> picture_cache_model_;
+
DISALLOW_COPY_AND_ASSIGN(FakeImageSerializationProcessor);
};

Powered by Google App Engine
This is Rietveld 408576698