aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrContext.h')
-rw-r--r--include/gpu/GrContext.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 53d479c3b0..90382fd97b 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -253,6 +253,15 @@ public:
*/
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,7 +880,9 @@ private:
void* fInfo;
};
- SkTDArray<CleanUpData> fCleanUpData;
+ SkTDArray<CleanUpData> fCleanUpData;
+
+ int fMaxTextureSizeOverride;
GrContext(); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext);