8#ifndef SkCGBase_DEFINED
9#define SkCGBase_DEFINED
13#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
17#ifdef SK_BUILD_FOR_MAC
18#import <ApplicationServices/ApplicationServices.h>
21#ifdef SK_BUILD_FOR_IOS
22#include <CoreGraphics/CoreGraphics.h>
27static inline CGFloat SkScalarToCGFloat(
SkScalar scalar) {
31static inline SkScalar SkScalarFromCGFloat(CGFloat cgFloat) {
35static inline float SkFloatFromCGFloat(CGFloat cgFloat) {
36 return CGFLOAT_IS_DOUBLE ?
static_cast<float>(cgFloat) : cgFloat;
#define SkScalarToDouble(x)
#define SkDoubleToScalar(x)