Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / skia / public / type_converters.h
blob341fc69ecc1d7b6736a9ac34cd56ce4ba1a26b35
1 // Copyright 2015 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.
5 #ifndef SKIA_PUBLIC_TYPE_CONVERTERS_H_
6 #define SKIA_PUBLIC_TYPE_CONVERTERS_H_
8 #include "skia/public/interfaces/bitmap.mojom.h"
10 class SkBitmap;
12 namespace mojo {
14 template <>
15 struct TypeConverter<SkBitmap, skia::BitmapPtr> {
16 static SkBitmap Convert(const skia::BitmapPtr& image);
19 template <>
20 struct TypeConverter<skia::BitmapPtr, SkBitmap> {
21 static skia::BitmapPtr Convert(const SkBitmap& bitmap);
24 } // namespace mojo
26 #endif // SKIA_PUBLIC_TYPE_CONVERTERS_H_