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

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

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « mojo/skia/gl_bindings_skia.cc ('k') | services/gfx/compositor/graph/nodes.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 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 MOJO_SKIA_TYPE_CONVERTERS_H_ 5 #ifndef MOJO_SKIA_TYPE_CONVERTERS_H_
6 #define MOJO_SKIA_TYPE_CONVERTERS_H_ 6 #define MOJO_SKIA_TYPE_CONVERTERS_H_
7 7
8 #include "mojo/services/geometry/interfaces/geometry.mojom.h" 8 #include "mojo/services/geometry/interfaces/geometry.mojom.h"
9 #include "third_party/skia/include/core/SkMatrix.h" 9 #include "third_party/skia/include/core/SkMatrix.h"
10 #include "third_party/skia/include/core/SkMatrix44.h"
10 #include "third_party/skia/include/core/SkPoint.h" 11 #include "third_party/skia/include/core/SkPoint.h"
11 #include "third_party/skia/include/core/SkRRect.h" 12 #include "third_party/skia/include/core/SkRRect.h"
12 #include "third_party/skia/include/core/SkRect.h" 13 #include "third_party/skia/include/core/SkRect.h"
13 #include "third_party/skia/include/utils/SkMatrix44.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 16
17 template <> 17 template <>
18 struct TypeConverter<SkIPoint, mojo::Point> { 18 struct TypeConverter<SkIPoint, mojo::Point> {
19 static SkIPoint Convert(const mojo::Point& input); 19 static SkIPoint Convert(const mojo::Point& input);
20 }; 20 };
21 template <> 21 template <>
22 struct TypeConverter<mojo::Point, SkIPoint> { 22 struct TypeConverter<mojo::Point, SkIPoint> {
23 static mojo::Point Convert(const SkIPoint& input); 23 static mojo::Point Convert(const SkIPoint& input);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static SkMatrix44 Convert(const mojo::TransformPtr& input); 76 static SkMatrix44 Convert(const mojo::TransformPtr& input);
77 }; 77 };
78 template <> 78 template <>
79 struct TypeConverter<mojo::TransformPtr, SkMatrix44> { 79 struct TypeConverter<mojo::TransformPtr, SkMatrix44> {
80 static mojo::TransformPtr Convert(const SkMatrix44& input); 80 static mojo::TransformPtr Convert(const SkMatrix44& input);
81 }; 81 };
82 82
83 } // namespace mojo 83 } // namespace mojo
84 84
85 #endif // MOJO_SKIA_TYPE_CONVERTERS_H_ 85 #endif // MOJO_SKIA_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « mojo/skia/gl_bindings_skia.cc ('k') | services/gfx/compositor/graph/nodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698