| OLD | NEW |
| 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_ |
| OLD | NEW |