blob: 686d6a9ac0eb5714dbe5f8cea01a72cfb4d3701e [file] [log] [blame]
bsalomon682c2692015-05-22 14:01:46 -07001/*
2 * Copyright 2015 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 GrContextOptions_DEFINED
9#define GrContextOptions_DEFINED
10
11#include "SkTypes.h"
12
13struct GrContextOptions {
bsalomon4ee6bd82015-05-27 13:23:23 -070014 GrContextOptions()
15 : fDrawPathToCompressedTexture(false)
16 , fSuppressPrints(false)
17 , fMaxTextureSizeOverride(SK_MaxS32) {}
bsalomon682c2692015-05-22 14:01:46 -070018
19 // EXPERIMENTAL
20 // May be removed in the future, or may become standard depending
21 // on the outcomes of a variety of internal tests.
22 bool fDrawPathToCompressedTexture;
bsalomon4ee6bd82015-05-27 13:23:23 -070023
bsalomon682c2692015-05-22 14:01:46 -070024 // Suppress prints for the GrContext.
25 bool fSuppressPrints;
bsalomon4ee6bd82015-05-27 13:23:23 -070026
27 /** Overrides: These options override feature detection using backend API queries. These
28 overrides can only reduce the feature set or limits, never increase them beyond the
29 detected values. */
30
31 int fMaxTextureSizeOverride;
bsalomon682c2692015-05-22 14:01:46 -070032};
33
34#endif