Index: cc/stubs/SkiaUtils.h |
diff --git a/cc/stubs/SkiaUtils.h b/cc/stubs/SkiaUtils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f4dee37c8aa3eac94e2a87cd31daec9d3b97b7ea |
--- /dev/null |
+++ b/cc/stubs/SkiaUtils.h |
@@ -0,0 +1,13 @@ |
+#ifndef CC_STUBS_SKIAUTILS_H_ |
+#define CC_STUBS_SKIAUTILS_H_ |
+ |
+namespace WebCore { |
+ |
+inline SkScalar WebCoreFloatToSkScalar(float f) |
+{ |
+ return SkFloatToScalar(isfinite(f) ? f : 0); |
+} |
+ |
+} |
+ |
+#endif // CC_STUBS_SKIAUTILS_H_ |