Chromium Code Reviews| Index: blimp/engine/renderer/engine_image_serialization_processor.h |
| diff --git a/blimp/common/compositor/blimp_image_serialization_processor.h b/blimp/engine/renderer/engine_image_serialization_processor.h |
| similarity index 50% |
| copy from blimp/common/compositor/blimp_image_serialization_processor.h |
| copy to blimp/engine/renderer/engine_image_serialization_processor.h |
| index 040f24557be2b69780facc2ae5182739dd21d9a6..a3620f85fea1521de523806b6110b8041276780a 100644 |
| --- a/blimp/common/compositor/blimp_image_serialization_processor.h |
| +++ b/blimp/engine/renderer/engine_image_serialization_processor.h |
| @@ -2,29 +2,32 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef BLIMP_COMMON_COMPOSITOR_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| -#define BLIMP_COMMON_COMPOSITOR_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| +#ifndef BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| +#define BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| #include "base/macros.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "blimp/common/blimp_common_export.h" |
| +#include "blimp/engine/mojo/blob_channel.mojom.h" |
| #include "cc/proto/image_serialization_processor.h" |
| #include "third_party/skia/include/core/SkPicture.h" |
| class SkPixelSerializer; |
| +namespace content { |
| +class RenderFrame; |
| +} // class content |
| + |
| namespace blimp { |
| +namespace engine { |
| -// BlimpImageSerializationProcessor provides functionality to serialize and |
| +// EngineImageSerializationProcessor provides functionality to serialize and |
| // deserialize Skia images. |
| -class BLIMP_COMMON_EXPORT BlimpImageSerializationProcessor |
| +class BLIMP_COMMON_EXPORT EngineImageSerializationProcessor |
|
nyquist
2016/04/05 22:13:19
Should you rename the client-version as well in th
Kevin M
2016/04/06 00:01:44
Upcoming CL. I'm focusing on engine-specific thing
|
| : public cc::ImageSerializationProcessor { |
| public: |
| - // Denotes whether the BlimpImageSerializationProcessor should act as a |
| - // serializer (engine) or deserializer (client). |
| - enum class Mode { SERIALIZATION, DESERIALIZATION }; |
| - explicit BlimpImageSerializationProcessor(Mode mode); |
| - ~BlimpImageSerializationProcessor(); |
| + explicit EngineImageSerializationProcessor(BlobChannelMojoPtr blob_channel); |
| + ~EngineImageSerializationProcessor(); |
| // cc::ImageSerializationProcessor implementation. |
| SkPixelSerializer* GetPixelSerializer() override; |
| @@ -32,11 +35,12 @@ class BLIMP_COMMON_EXPORT BlimpImageSerializationProcessor |
| private: |
| scoped_ptr<SkPixelSerializer> pixel_serializer_; |
| - SkPicture::InstallPixelRefProc pixel_deserializer_; |
| + BlobChannelMojoPtr blob_channel_; |
| - DISALLOW_COPY_AND_ASSIGN(BlimpImageSerializationProcessor); |
| + DISALLOW_COPY_AND_ASSIGN(EngineImageSerializationProcessor); |
| }; |
| +} // namespace engine |
| } // namespace blimp |
| -#endif // BLIMP_COMMON_COMPOSITOR_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ |
| +#endif // BLIMP_ENGINE_RENDERER_ENGINE_IMAGE_SERIALIZATION_PROCESSOR_H_ |