1 /* 2 * Copyright 2013 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef GrTest_DEFINED 9 #define GrTest_DEFINED 10 11 #include "GrBackendSurface.h" 12 #include "GrContext.h" 13 14 namespace GrTest { 15 /** 16 * Forces the GrContext to use a small atlas which only has room for one plot and will thus 17 * constantly be evicting entries 18 */ 19 void SetupAlwaysEvictAtlas(GrContext*); 20 21 GrBackendTexture CreateBackendTexture(GrBackend, int width, int height, 22 GrPixelConfig, GrBackendObject); 23 }; 24 25 #endif 26