From e5ea500d4714a7d84de2bf913e81be3b65d2de68 Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 3 Sep 2014 11:54:58 -0700 Subject: Hide fields in SkImageInfo R=rmistry@google.com TBR=bsalomon Author: reed@google.com Review URL: https://codereview.chromium.org/536003002 --- tests/DrawBitmapRectTest.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/DrawBitmapRectTest.cpp') diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp index 720155ca0c..71ad2cf733 100644 --- a/tests/DrawBitmapRectTest.cpp +++ b/tests/DrawBitmapRectTest.cpp @@ -25,10 +25,7 @@ public: protected: virtual bool onGetInfo(SkImageInfo* info) SK_OVERRIDE { - info->fWidth = 100; - info->fHeight = 100; - info->fColorType = kN32_SkColorType; - info->fAlphaType = kPremul_SkAlphaType; + *info = SkImageInfo::MakeN32Premul(100, 100); return true; } // default onGetPixels() returns false, which is what we want. -- cgit v1.2.3