diff options
Diffstat (limited to 'gm/drawbitmaprect.cpp')
-rw-r--r-- | gm/drawbitmaprect.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gm/drawbitmaprect.cpp b/gm/drawbitmaprect.cpp index ea9a09fe0a..3c873e290d 100644 --- a/gm/drawbitmaprect.cpp +++ b/gm/drawbitmaprect.cpp @@ -131,8 +131,8 @@ static void imagesubsetproc(SkCanvas* canvas, SkImage* image, const SkBitmap& bm typedef void DrawRectRectProc(SkCanvas*, SkImage*, const SkBitmap&, const SkIRect&, const SkRect&, const SkPaint*); -static const int gSize = 1024; -static const int gBmpSize = 2048; +constexpr int gSize = 1024; +constexpr int gBmpSize = 2048; class DrawBitmapRectGM : public skiagm::GM { public: @@ -163,10 +163,10 @@ protected: } SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; - static const int kMaxSrcRectSize = 1 << (SkNextLog2(gBmpSize) + 2); + const int kMaxSrcRectSize = 1 << (SkNextLog2(gBmpSize) + 2); - static const int kPadX = 30; - static const int kPadY = 40; + const int kPadX = 30; + const int kPadY = 40; SkPaint paint; paint.setAlpha(0x20); canvas->drawImageRect(fImage, SkRect::MakeIWH(gSize, gSize), &paint); |