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

Unified Diff: cc/output/software_renderer.cc

Issue 122443005: replace deprecated SkScalarRound/Floor/Ceil calls with more explicit variants (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | chrome/common/badge_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/software_renderer.cc
diff --git a/cc/output/software_renderer.cc b/cc/output/software_renderer.cc
index 421e541da7d8f33fc510030257f1342b092434fe..84f6f1ea87049b5be30fcc97bac79f30fc793f90 100644
--- a/cc/output/software_renderer.cc
+++ b/cc/output/software_renderer.cc
@@ -36,7 +36,7 @@ namespace cc {
namespace {
static inline bool IsScalarNearlyInteger(SkScalar scalar) {
- return SkScalarNearlyZero(scalar - SkScalarRound(scalar));
+ return SkScalarNearlyZero(scalar - SkScalarRoundToScalar(scalar));
}
bool IsScaleAndIntegerTranslate(const SkMatrix& matrix) {
« no previous file with comments | « no previous file | chrome/common/badge_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698