OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2014 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef SkSurfacePriv_DEFINED | |
9 #define SkSurfacePriv_DEFINED | |
10 | |
11 #include "SkSurfaceProps.h" | |
12 | |
13 static inline SkSurfaceProps SkSurfacePropsCopyOrDefault(const SkSurfaceProps* p
rops) { | |
14 if (props) { | |
15 return *props; | |
16 } else { | |
17 return SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType); | |
18 } | |
19 } | |
20 | |
21 static inline SkPixelGeometry SkSurfacePropsDefaultPixelGeometry() { | |
22 return SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType).pixelGeometr
y(); | |
23 } | |
24 | |
25 #endif | |
OLD | NEW |