Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: skia/public/type_converters.h

Issue 1906773003: Enable SkBitmap to be used by Mojo in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « skia/public/interfaces/bitmap.mojom ('k') | skia/public/type_converters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 SKIA_PUBLIC_TYPE_CONVERTERS_H_ 5 #ifndef SKIA_PUBLIC_TYPE_CONVERTERS_H_
6 #define SKIA_PUBLIC_TYPE_CONVERTERS_H_ 6 #define SKIA_PUBLIC_TYPE_CONVERTERS_H_
7 7
8 #include "skia/public/interfaces/bitmap.mojom.h" 8 #include "third_party/WebKit/public/platform/bitmap.mojom.h"
9 9
10 class SkBitmap; 10 class SkBitmap;
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 template <> 14 template <>
15 struct TypeConverter<SkBitmap, skia::mojom::BitmapPtr> { 15 struct TypeConverter<SkBitmap, blink::mojom::BitmapPtr> {
16 static SkBitmap Convert(const skia::mojom::BitmapPtr& image); 16 static SkBitmap Convert(const blink::mojom::BitmapPtr& image);
17 }; 17 };
18 18
19 template <> 19 template <>
20 struct TypeConverter<skia::mojom::BitmapPtr, SkBitmap> { 20 struct TypeConverter<blink::mojom::BitmapPtr, SkBitmap> {
21 static skia::mojom::BitmapPtr Convert(const SkBitmap& bitmap); 21 static blink::mojom::BitmapPtr Convert(const SkBitmap& bitmap);
22 }; 22 };
23 23
24 } // namespace mojo 24 } // namespace mojo
25 25
26 #endif // SKIA_PUBLIC_TYPE_CONVERTERS_H_ 26 #endif // SKIA_PUBLIC_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « skia/public/interfaces/bitmap.mojom ('k') | skia/public/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698