diff options
author | reed <reed@google.com> | 2014-09-03 11:54:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-03 11:54:58 -0700 |
commit | e5ea500d4714a7d84de2bf913e81be3b65d2de68 (patch) | |
tree | 0c94feeb709b17b954f5e97fad463ec9cfc4dc18 /tests/DrawBitmapRectTest.cpp | |
parent | 42b0dfeb29e993b7fd247dcecff705d3dd4cf191 (diff) |
Hide fields in SkImageInfo
R=rmistry@google.com
TBR=bsalomon
Author: reed@google.com
Review URL: https://codereview.chromium.org/536003002
Diffstat (limited to 'tests/DrawBitmapRectTest.cpp')
-rw-r--r-- | tests/DrawBitmapRectTest.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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. |