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: gm/complexclip.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add flag to expose SkFloatToScalar to chromium Created 7 years, 1 month 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 | « gm/colormatrix.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/complexclip.cpp
diff --git a/gm/complexclip.cpp b/gm/complexclip.cpp
index 86386b3d493696ec21b1b38aea752ce78b7a49c4..8ff1dfafd936c3a31e43007385187e97c407e7c7 100644
--- a/gm/complexclip.cpp
+++ b/gm/complexclip.cpp
@@ -100,10 +100,10 @@ protected:
// device boundaries so we need to "undo" the effect of the
// scale and translate
SkRect bounds = SkRect::MakeLTRB(
- SkFloatToScalar(4.0f/3.0f * -20),
- SkFloatToScalar(4.0f/3.0f * -20),
- SkFloatToScalar(4.0f/3.0f * (this->getISize().fWidth - 20)),
- SkFloatToScalar(4.0f/3.0f * (this->getISize().fHeight - 20)));
+ 4.0f/3.0f * -20,
+ 4.0f/3.0f * -20,
+ 4.0f/3.0f * (this->getISize().fWidth - 20),
+ 4.0f/3.0f * (this->getISize().fHeight - 20));
bounds.inset(SkIntToScalar(100), SkIntToScalar(100));
SkPaint boundPaint;
« no previous file with comments | « gm/colormatrix.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698