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

Side by Side Diff: blimp/common/compositor/blimp_remote_image_serializer.h

Issue 1680333004: Add support for encoding/decoding WebP images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serialize-deserialize-images-framework
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_COMMON_COMPOSITOR_BLIMP_REMOTE_IMAGE_SERIALIZER_H_ 5 #ifndef BLIMP_COMMON_COMPOSITOR_BLIMP_REMOTE_IMAGE_SERIALIZER_H_
6 #define BLIMP_COMMON_COMPOSITOR_BLIMP_REMOTE_IMAGE_SERIALIZER_H_ 6 #define BLIMP_COMMON_COMPOSITOR_BLIMP_REMOTE_IMAGE_SERIALIZER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
9 #include "blimp/common/blimp_common_export.h" 10 #include "blimp/common/blimp_common_export.h"
10 #include "cc/proto/remote_image_serializer.h" 11 #include "cc/proto/remote_image_serializer.h"
11 12 #include "third_party/skia/include/core/SkPixelSerializer.h"
12 class SkPixelSerializer;
13 13
14 namespace blimp { 14 namespace blimp {
15 15
16 // BlimpRemoteImageSerializer provides functionality to serialize Skia images. 16 // BlimpRemoteImageSerializer provides functionality to serialize Skia images.
17 // The BlimpRemoteImageDeserializer for the counterpart running on the client. 17 // The BlimpRemoteImageDeserializer for the counterpart running on the client.
18 class BLIMP_COMMON_EXPORT BlimpRemoteImageSerializer 18 class BLIMP_COMMON_EXPORT BlimpRemoteImageSerializer
19 : public cc::RemoteImageSerializer { 19 : public cc::RemoteImageSerializer {
20 public: 20 public:
21 BlimpRemoteImageSerializer(); 21 BlimpRemoteImageSerializer();
22 ~BlimpRemoteImageSerializer(); 22 ~BlimpRemoteImageSerializer();
23 23
24 // cc::RemoteImageSerializer implementation. 24 // cc::RemoteImageSerializer implementation.
25 SkPixelSerializer* GetPixelSerializer() override; 25 SkPixelSerializer* GetPixelSerializer() override;
26 26
27 private: 27 private:
28 scoped_ptr<SkPixelSerializer> pixel_serializer_;
29
28 DISALLOW_COPY_AND_ASSIGN(BlimpRemoteImageSerializer); 30 DISALLOW_COPY_AND_ASSIGN(BlimpRemoteImageSerializer);
29 }; 31 };
30 32
31 } // namespace blimp 33 } // namespace blimp
32 34
33 #endif // BLIMP_COMMON_COMPOSITOR_BLIMP_REMOTE_IMAGE_SERIALIZER_H_ 35 #endif // BLIMP_COMMON_COMPOSITOR_BLIMP_REMOTE_IMAGE_SERIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698