aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrWindowRectangles.h
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-08-23 06:51:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-23 06:51:00 -0700
commit7535f419e235e224559ee2b4b62ee6bfddc01556 (patch)
tree23bd43e47e9270449f99e023c2fc8e0c45886795 /src/gpu/GrWindowRectangles.h
parent5eca3e187e9a584f3c8162b04b452a8412e4665a (diff)
Reduce window rectangles cap to 8
Lowers the cap to 8 and adds a warning message if this value is ever exceeded. The largest (only) implementation currently supports 8, so there isn't yet reason to go higher. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2254013002 Committed: https://skia.googlesource.com/skia/+/52d721580ee22525c285e2d13cf3975a7a1b2843 Review-Url: https://codereview.chromium.org/2254013002
Diffstat (limited to 'src/gpu/GrWindowRectangles.h')
-rw-r--r--src/gpu/GrWindowRectangles.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrWindowRectangles.h b/src/gpu/GrWindowRectangles.h
index 682af9353d..b2f6e1ab4a 100644
--- a/src/gpu/GrWindowRectangles.h
+++ b/src/gpu/GrWindowRectangles.h
@@ -13,7 +13,7 @@
class GrWindowRectangles {
public:
- constexpr static int kMaxWindows = 16;
+ constexpr static int kMaxWindows = 8;
enum class Mode : bool {
kExclusive,
@@ -25,7 +25,7 @@ public:
~GrWindowRectangles() { SkSafeUnref(this->rec()); }
Mode mode() const { return fMode; }
- uint16_t count() const { return fCount; }
+ int count() const { return fCount; }
bool disabled() const { return Mode::kExclusive == fMode && !fCount; }
const SkIRect* data() const;