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

Unified Diff: blimp/client/feature/compositor/client_image_serialization_processor.h

Issue 1955493002: Move BlimpImageSerializationProcessor and WebPDecoder to //blimp/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments, moved to blimp::client namespace, renamed webp_decoder.[cc|h] according to func… Created 4 years, 7 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: blimp/client/feature/compositor/client_image_serialization_processor.h
diff --git a/blimp/client/feature/compositor/client_image_serialization_processor.h b/blimp/client/feature/compositor/client_image_serialization_processor.h
new file mode 100644
index 0000000000000000000000000000000000000000..5118f428cf6b539e65cf1bc2dc03743a78c35f39
--- /dev/null
+++ b/blimp/client/feature/compositor/client_image_serialization_processor.h
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_
+#define BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_
+
+#include "base/macros.h"
+#include "cc/proto/image_serialization_processor.h"
+#include "third_party/skia/include/core/SkPicture.h"
+
+class SkPixelSerializer;
+
+namespace blimp {
+namespace client {
+
+// ClientImageSerializationProcessor provides functionality to deserialize Skia
+// images.
+class ClientImageSerializationProcessor
+ : public cc::ImageSerializationProcessor {
+ public:
+ ClientImageSerializationProcessor();
+ ~ClientImageSerializationProcessor();
+
+ // cc::ImageSerializationProcessor implementation.
+ SkPixelSerializer* GetPixelSerializer() override;
+ SkPicture::InstallPixelRefProc GetPixelDeserializer() override;
+
+ private:
+ SkPicture::InstallPixelRefProc pixel_deserializer_;
+
+ DISALLOW_COPY_AND_ASSIGN(ClientImageSerializationProcessor);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_

Powered by Google App Engine
This is Rietveld 408576698