2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkSurfacePriv_DEFINED
9 #define SkSurfacePriv_DEFINED
11 #include "SkSurfaceProps.h"
13 static inline SkSurfaceProps SkSurfacePropsCopyOrDefault(const SkSurfaceProps* props) {
17 return SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType);
21 static inline SkPixelGeometry SkSurfacePropsDefaultPixelGeometry() {
22 return SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType).pixelGeometry();