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

Unified Diff: gm/canvasstate.cpp

Issue 22937005: fix mac build errors related to new gm (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/canvasstate.cpp
diff --git a/gm/canvasstate.cpp b/gm/canvasstate.cpp
index 1a26bf0df7c1c194677dabdaefb6fea2062c8014..4dd403ca5c71f745a299a9c35ab7da2afceaeb4b 100644
--- a/gm/canvasstate.cpp
+++ b/gm/canvasstate.cpp
@@ -81,7 +81,7 @@ protected:
}
- virtual uint32_t onGetFlags() SK_OVERRIDE const { return kSkipPicture_Flag; }
+ virtual uint32_t onGetFlags() const SK_OVERRIDE { return kSkipPicture_Flag; }
private:
void drawTestPattern(int x, int y, SkCanvas* canvas,
@@ -95,7 +95,7 @@ private:
canvas->clipPath(fPath);
}
if (doScale) {
- canvas->scale(0.5, 0.5);
+ canvas->scale(SkDoubleToScalar(0.5), SkDoubleToScalar(0.5));
}
canvas->restore();
canvas->drawRect(fFillRect, fFillPaint);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698