| 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_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ | 5 #ifndef BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| 6 #define BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ | 6 #define BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "blimp/common/blimp_common_export.h" | 12 #include "blimp/common/blimp_common_export.h" |
| 13 #include "blimp/common/blob_cache/id_util.h" | 13 #include "blimp/common/blob_cache/id_util.h" |
| 14 #include "blimp/engine/mojo/blob_channel.mojom.h" | 14 #include "blimp/engine/mojo/blob_channel.mojom.h" |
| 15 #include "cc/blimp/client_picture_cache.h" | 15 #include "cc/blimp/client_picture_cache.h" |
| 16 #include "cc/blimp/engine_picture_cache.h" | 16 #include "cc/blimp/engine_picture_cache.h" |
| 17 #include "cc/blimp/image_serialization_processor.h" | 17 #include "cc/blimp/image_serialization_processor.h" |
| 18 #include "third_party/libwebp/webp/encode.h" | 18 #include "third_party/libwebp/webp/encode.h" |
| 19 #include "third_party/skia/include/core/SkPixelSerializer.h" | 19 #include "third_party/skia/include/core/SkPixelSerializer.h" |
| 20 | 20 |
| 21 namespace content { | |
| 22 class RenderFrame; | |
| 23 } // class content | |
| 24 | |
| 25 namespace blimp { | 21 namespace blimp { |
| 26 namespace engine { | 22 namespace engine { |
| 27 | 23 |
| 28 class BlobChannelSenderProxy; | 24 class BlobChannelSenderProxy; |
| 29 | 25 |
| 30 // EngineImageSerializationProcessor provides functionality to serialize | 26 // EngineImageSerializationProcessor provides functionality to serialize |
| 31 // and temporarily cache Skia images. | 27 // and temporarily cache Skia images. |
| 32 class BLIMP_COMMON_EXPORT EngineImageSerializationProcessor | 28 class BLIMP_COMMON_EXPORT EngineImageSerializationProcessor |
| 33 : public cc::ImageSerializationProcessor, | 29 : public cc::ImageSerializationProcessor, |
| 34 public SkPixelSerializer { | 30 public SkPixelSerializer { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 58 // Reusable output buffer for image encoding. | 54 // Reusable output buffer for image encoding. |
| 59 WebPMemoryWriter writer_state_; | 55 WebPMemoryWriter writer_state_; |
| 60 | 56 |
| 61 DISALLOW_COPY_AND_ASSIGN(EngineImageSerializationProcessor); | 57 DISALLOW_COPY_AND_ASSIGN(EngineImageSerializationProcessor); |
| 62 }; | 58 }; |
| 63 | 59 |
| 64 } // namespace engine | 60 } // namespace engine |
| 65 } // namespace blimp | 61 } // namespace blimp |
| 66 | 62 |
| 67 #endif // BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ | 63 #endif // BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| OLD | NEW |