OLD | NEW |
| (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_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_ | |
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "cc/proto/image_serialization_processor.h" | |
10 #include "third_party/skia/include/core/SkPicture.h" | |
11 | |
12 class SkPixelSerializer; | |
13 | |
14 namespace blimp { | |
15 namespace client { | |
16 | |
17 // ClientImageSerializationProcessor provides functionality to deserialize Skia | |
18 // images. | |
19 class ClientImageSerializationProcessor | |
20 : public cc::ImageSerializationProcessor { | |
21 public: | |
22 ClientImageSerializationProcessor(); | |
23 ~ClientImageSerializationProcessor(); | |
24 | |
25 // cc::ImageSerializationProcessor implementation. | |
26 SkPixelSerializer* GetPixelSerializer() override; | |
27 SkPicture::InstallPixelRefProc GetPixelDeserializer() override; | |
28 | |
29 private: | |
30 SkPicture::InstallPixelRefProc pixel_deserializer_; | |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(ClientImageSerializationProcessor); | |
33 }; | |
34 | |
35 } // namespace client | |
36 } // namespace blimp | |
37 | |
38 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_
H_ | |
OLD | NEW |