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

Unified Diff: include/gpu/GrContext.h

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 | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
===================================================================
--- include/gpu/GrContext.h (revision 10354)
+++ include/gpu/GrContext.h (working copy)
@@ -253,6 +253,15 @@
*/
int getMaxTextureSize() const;
+ /**
+ * Temporarily override the true max texture size. Note: an override
+ * larger then the true max texture size will have no effect.
+ * This entry point is mainly meant for testing texture size dependent
+ * features and is only available if defined outside of Skia (see
+ * bleed GM.
+ */
+ void setMaxTextureSizeOverride(int maxTextureSizeOverride);
+
///////////////////////////////////////////////////////////////////////////
// Render targets
@@ -871,8 +880,10 @@
void* fInfo;
};
- SkTDArray<CleanUpData> fCleanUpData;
+ SkTDArray<CleanUpData> fCleanUpData;
+ int fMaxTextureSizeOverride;
+
GrContext(); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext);
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698