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

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: Addressed comments from vmpstr, including adding //cc/blimp 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
« no previous file with comments | « cc/test/fake_engine_picture_cache.cc ('k') | cc/test/fake_image_serialization_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..308fd49bd15853cab97378f297323d66c8d28d88 100644
--- a/cc/test/fake_image_serialization_processor.h
+++ b/cc/test/fake_image_serialization_processor.h
@@ -5,23 +5,29 @@
#ifndef CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_
#define CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_
-#include "base/macros.h"
-#include "cc/proto/image_serialization_processor.h"
+#include <memory>
-class SkPixelSerializer;
+#include "base/macros.h"
+#include "cc/blimp/client_picture_cache.h"
+#include "cc/blimp/engine_picture_cache.h"
+#include "cc/blimp/image_serialization_processor.h"
+#include "cc/test/picture_cache_model.h"
namespace cc {
class FakeImageSerializationProcessor : public ImageSerializationProcessor {
public:
FakeImageSerializationProcessor();
- ~FakeImageSerializationProcessor();
+ ~FakeImageSerializationProcessor() override;
// 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<PictureCacheModel> picture_cache_model_;
+
DISALLOW_COPY_AND_ASSIGN(FakeImageSerializationProcessor);
};
« no previous file with comments | « cc/test/fake_engine_picture_cache.cc ('k') | cc/test/fake_image_serialization_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698