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

Unified Diff: src/gpu/GrContext.cpp

Issue 20325002: Add GrContext::setMaxTextureSizeOverride (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: omit body of setMaxTextureOverride Created 7 years, 5 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 | « include/gpu/GrContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
===================================================================
--- src/gpu/GrContext.cpp (revision 10354)
+++ src/gpu/GrContext.cpp (working copy)
@@ -102,6 +102,7 @@
fAARectRenderer = NULL;
fOvalRenderer = NULL;
fViewMatrix.reset();
+ fMaxTextureSizeOverride = 1 << 20;
}
bool GrContext::init(GrBackend backend, GrBackendContext backendContext) {
@@ -554,7 +555,7 @@
}
int GrContext::getMaxTextureSize() const {
- return fGpu->caps()->maxTextureSize();
+ return GrMin(fGpu->caps()->maxTextureSize(), fMaxTextureSizeOverride);
}
int GrContext::getMaxRenderTargetSize() const {
« no previous file with comments | « include/gpu/GrContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698