| 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);
|
|
|
|
|