Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: src/gpu/GrWindowRectangles.h

Issue 2254013002: Reduce window rectangles cap to 8 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reduce window rectangles cap to 8 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrWindowRectangles.h
diff --git a/src/gpu/GrWindowRectangles.h b/src/gpu/GrWindowRectangles.h
index 682af9353d9e4ceb0765cf5ac4f6b005d6b5dfee..b2f6e1ab4ad2f80ea216820dc3b6714334acb798 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;
« no previous file with comments | « src/gpu/GrCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698