From f539318f0d3dba743ec1886d5d9df0fb1be628a1 Mon Sep 17 00:00:00 2001 From: tfarina Date: Mon, 9 Jun 2014 23:59:03 -0700 Subject: Cleanup: Get rid of make_isize() function from gm.h. This helper function is not necessary. The same thing can be achieved by using SkISize::Make() provided by SkTSize API. BUG=skia:2645 TEST=make dm && out/Debug/dm R=robertphillips@google.com, reed@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/326523002 --- gm/gradtext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gm/gradtext.cpp') diff --git a/gm/gradtext.cpp b/gm/gradtext.cpp index 42513b73de..5fac185c9d 100644 --- a/gm/gradtext.cpp +++ b/gm/gradtext.cpp @@ -44,7 +44,7 @@ public: protected: virtual SkString onShortName() { return SkString("chrome_gradtext1"); } - virtual SkISize onISize() { return make_isize(500, 480); } + virtual SkISize onISize() { return SkISize::Make(500, 480); } virtual void onDraw(SkCanvas* canvas) { SkPaint paint; SkRect r = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(100)); @@ -72,7 +72,7 @@ public: protected: virtual SkString onShortName() { return SkString("chrome_gradtext2"); } - virtual SkISize onISize() { return make_isize(500, 480); } + virtual SkISize onISize() { return SkISize::Make(500, 480); } virtual void onDraw(SkCanvas* canvas) { SkPaint paint; @@ -109,7 +109,7 @@ protected: return SkString("gradtext"); } - virtual SkISize onISize() { return make_isize(500, 480); } + virtual SkISize onISize() { return SkISize::Make(500, 480); } static void draw_text(SkCanvas* canvas, const SkPaint& paint) { const char* text = "When in the course of human events"; -- cgit v1.2.3