blob: d4a4c6dfac356f0c5aca3cbca65ae6b09afc0e14 [file] [log] [blame]
commit-bot@chromium.org78a10782013-08-21 19:27:48 +00001/*
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
Greg Daniel7ef28f32017-04-20 16:41:55 +000011#include "GrBackendSurface.h"
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000012#include "GrContext.h"
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000013
joshualitt7f9c9eb2015-08-21 11:08:00 -070014namespace 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*);
Greg Daniel7ef28f32017-04-20 16:41:55 +000020
21 GrBackendTexture CreateBackendTexture(GrBackend, int width, int height,
22 GrPixelConfig, GrBackendObject);
joshualitt7f9c9eb2015-08-21 11:08:00 -070023};
24
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000025#endif