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

Unified Diff: cc/base/math_util.h

Issue 2179003003: cc: disable denorm handling before calling into Skia's filter code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Protect orig_state_ member var with #ifdef __SSE__. Created 4 years, 5 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 | « no previous file | cc/base/math_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/math_util.h
diff --git a/cc/base/math_util.h b/cc/base/math_util.h
index 4e3347e3935cb0c70e1c7ff850174bbe712a9484..05014ee5c19dffd7abb676c8ba0a3f5e7e90753e 100644
--- a/cc/base/math_util.h
+++ b/cc/base/math_util.h
@@ -323,6 +323,18 @@ class CC_EXPORT MathUtil {
}
};
+class ScopedSubnormalFloatDisabler {
+ public:
+ ScopedSubnormalFloatDisabler();
+ ~ScopedSubnormalFloatDisabler();
+
+ private:
+#ifdef __SSE__
+ unsigned int orig_state_;
+#endif
+ DISALLOW_COPY_AND_ASSIGN(ScopedSubnormalFloatDisabler);
+};
+
} // namespace cc
#endif // CC_BASE_MATH_UTIL_H_
« no previous file with comments | « no previous file | cc/base/math_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698