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

Unified Diff: src/gpu/GrCaps.cpp

Issue 2251573002: Implement difference clip rects with window rectangles (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: return type 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/GrAppliedClip.h ('k') | src/gpu/GrClip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrCaps.cpp
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp
index 19ef38c49d244fe226e47e3232fe5457ed1e8f29..622c6855fae0ad93e29fd05c4fc6c62a0b65df45 100644
--- a/src/gpu/GrCaps.cpp
+++ b/src/gpu/GrCaps.cpp
@@ -7,6 +7,7 @@
#include "GrCaps.h"
#include "GrContextOptions.h"
+#include "GrWindowRectangles.h"
GrShaderCaps::GrShaderCaps() {
fShaderDerivativeSupport = false;
@@ -131,6 +132,7 @@ GrCaps::GrCaps(const GrContextOptions& options) {
}
void GrCaps::applyOptionsOverrides(const GrContextOptions& options) {
+ this->onApplyOptionsOverrides(options);
fMaxTextureSize = SkTMin(fMaxTextureSize, options.fMaxTextureSizeOverride);
// If the max tile override is zero, it means we should use the max texture size.
if (!options.fMaxTileSizeOverride || options.fMaxTileSizeOverride > fMaxTextureSize) {
@@ -138,7 +140,9 @@ void GrCaps::applyOptionsOverrides(const GrContextOptions& options) {
} else {
fMaxTileSize = options.fMaxTileSizeOverride;
}
- this->onApplyOptionsOverrides(options);
+ if (fMaxWindowRectangles > GrWindowRectangles::kMaxWindows) {
+ fMaxWindowRectangles = GrWindowRectangles::kMaxWindows;
csmartdalton 2016/08/17 18:24:06 We still cap. The cap just got moved here instead.
+ }
}
static SkString map_flags_to_string(uint32_t flags) {
« no previous file with comments | « src/gpu/GrAppliedClip.h ('k') | src/gpu/GrClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698