aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/distantclip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/distantclip.cpp')
-rw-r--r--gm/distantclip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/distantclip.cpp b/gm/distantclip.cpp
index 9276dadc53..07594e788a 100644
--- a/gm/distantclip.cpp
+++ b/gm/distantclip.cpp
@@ -26,8 +26,8 @@ protected:
SkISize onISize() { return SkISize::Make(100, 100); }
virtual void onDraw(SkCanvas* canvas) {
- static const SkScalar kOffset = 35000.0f;
- static const SkScalar kExtents = 1000.0f;
+ constexpr SkScalar kOffset = 35000.0f;
+ constexpr SkScalar kExtents = 1000.0f;
SkPictureRecorder recorder;
// We record a picture of huge vertical extents in which we clear the canvas to red, create