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

Unified Diff: Source/platform/FloatConversion.h

Issue 25494003: Move geometry classes from core/platform/graphics to platform/geometry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/modules/webaudio/PannerNode.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/FloatConversion.h
diff --git a/Source/core/platform/FloatConversion.h b/Source/platform/FloatConversion.h
similarity index 90%
rename from Source/core/platform/FloatConversion.h
rename to Source/platform/FloatConversion.h
index 95f013a0a0dd3e7a669509e9b932d52ce4922753..69df52c7b30421a2982558c80adb63cadfc04f18 100644
--- a/Source/core/platform/FloatConversion.h
+++ b/Source/platform/FloatConversion.h
@@ -31,14 +31,15 @@
namespace WebCore {
- template<typename T>
- float narrowPrecisionToFloat(T);
+template<typename T>
+float narrowPrecisionToFloat(T);
+
+template<>
+inline float narrowPrecisionToFloat(double number)
+{
+ return static_cast<float>(number);
+}
- template<>
- inline float narrowPrecisionToFloat(double number)
- {
- return static_cast<float>(number);
- }
} // namespace WebCore
#endif // FloatConversion_h
« no previous file with comments | « Source/modules/webaudio/PannerNode.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698