aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/windowrectangles.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-09-06 11:45:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-06 11:45:31 -0700
commit0a441077dccd8b33ed1af3193b9d5df5143d4861 (patch)
tree61b3dd51bee2eec019d8cd7523c9ca067dfb1295 /gm/windowrectangles.cpp
parent6669010af4e6bd30bf05e256daae641dab7ac783 (diff)
kNumWindows is only used in GPU builds
TBR=csmartdalton@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2305923004 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-MSAN-Trybot Committed: https://skia.googlesource.com/skia/+/af92a7f85a5fc774838910444a9f2cddc3e43a2c Review-Url: https://codereview.chromium.org/2305923004
Diffstat (limited to 'gm/windowrectangles.cpp')
-rw-r--r--gm/windowrectangles.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/windowrectangles.cpp b/gm/windowrectangles.cpp
index b4ce7c23fb..7917bc4731 100644
--- a/gm/windowrectangles.cpp
+++ b/gm/windowrectangles.cpp
@@ -23,7 +23,6 @@
constexpr static SkIRect kDeviceRect = {0, 0, 600, 600};
constexpr static SkIRect kLayerRect = {25, 25, 575, 575};
constexpr static SkIRect kCoverRect = {50, 50, 550, 550};
-constexpr static int kNumWindows = 8;
namespace skiagm {
@@ -107,6 +106,8 @@ DEF_GM( return new WindowRectanglesGM(); )
#if SK_SUPPORT_GPU
+constexpr static int kNumWindows = 8;
+
/**
* Visualizes the mask (alpha or stencil) for a clip with several window rectangles. The purpose of
* this test is to verify that window rectangles are being used during clip mask generation, and to