| Index: third_party/WebKit/Source/platform/bitmap_type_converters.h
|
| diff --git a/third_party/WebKit/Source/platform/bitmap_type_converters.h b/third_party/WebKit/Source/platform/bitmap_type_converters.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..235311b00eea0b92c141329b156d1b7d76e1c36f
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/bitmap_type_converters.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef BITMAP_TYPE_CONVERTERS_H
|
| +#define BITMAP_TYPE_CONVERTERS_H
|
| +
|
| +#include "platform/PlatformExport.h"
|
| +#include "third_party/WebKit/public/platform/bitmap.mojom-wtf.h"
|
| +
|
| +class SkBitmap;
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct TypeConverter<SkBitmap, blink::mojom::wtf::BitmapPtr> {
|
| + static PLATFORM_EXPORT SkBitmap Convert(const blink::mojom::wtf::BitmapPtr& image);
|
| +};
|
| +
|
| +template <>
|
| +struct TypeConverter<blink::mojom::wtf::BitmapPtr, SkBitmap> {
|
| + static PLATFORM_EXPORT blink::mojom::wtf::BitmapPtr Convert(const SkBitmap& bitmap);
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // BITMAP_TYPE_CONVERTERS_H
|
|
|