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

Unified Diff: cc/stubs/SkiaUtils.h

Issue 10828381: libcc and webkit_compositor targets + stubs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Slightly better scripts and updated README Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « cc/stubs/Region.h ('k') | cc/stubs/TextStream.h » ('j') | cc/test/RunAllTests.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698