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

Side by Side Diff: blimp/common/compositor/blimp_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 unified diff | Download patch
« no previous file with comments | « blimp/common/BUILD.gn ('k') | blimp/common/compositor/blimp_image_serialization_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BLIMP_COMMON_COMPOSITOR_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_
6 #define BLIMP_COMMON_COMPOSITOR_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "blimp/common/blimp_common_export.h"
12 #include "cc/proto/image_serialization_processor.h"
13 #include "third_party/skia/include/core/SkPicture.h"
14
15 class SkPixelSerializer;
16
17 namespace blimp {
18
19 // BlimpImageSerializationProcessor provides functionality to serialize and
20 // deserialize Skia images.
21 class BLIMP_COMMON_EXPORT BlimpImageSerializationProcessor
22 : public cc::ImageSerializationProcessor {
23 public:
24 // Denotes whether the BlimpImageSerializationProcessor should act as a
25 // serializer (engine) or deserializer (client).
26 enum class Mode { SERIALIZATION, DESERIALIZATION };
27 explicit BlimpImageSerializationProcessor(Mode mode);
28 ~BlimpImageSerializationProcessor();
29
30 // cc::ImageSerializationProcessor implementation.
31 SkPixelSerializer* GetPixelSerializer() override;
32 SkPicture::InstallPixelRefProc GetPixelDeserializer() override;
33
34 private:
35 std::unique_ptr<SkPixelSerializer> pixel_serializer_;
36 SkPicture::InstallPixelRefProc pixel_deserializer_;
37
38 DISALLOW_COPY_AND_ASSIGN(BlimpImageSerializationProcessor);
39 };
40
41 } // namespace blimp
42
43 #endif // BLIMP_COMMON_COMPOSITOR_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_
OLDNEW
« no previous file with comments | « blimp/common/BUILD.gn ('k') | blimp/common/compositor/blimp_image_serialization_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698