Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Side by Side Diff: include/gpu/GrContextOptions.h

Issue 1158963002: Add caps overrides to GMs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrContextOptions_DEFINED 8 #ifndef GrContextOptions_DEFINED
9 #define GrContextOptions_DEFINED 9 #define GrContextOptions_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 12
13 struct GrContextOptions { 13 struct GrContextOptions {
14 GrContextOptions() : fDrawPathToCompressedTexture(false), fSuppressPrints(fa lse) {} 14 GrContextOptions()
15 : fDrawPathToCompressedTexture(false)
16 , fSuppressPrints(false)
17 , fMaxTextureSizeOverride(SK_MaxS32) {}
15 18
16 // EXPERIMENTAL 19 // EXPERIMENTAL
17 // May be removed in the future, or may become standard depending 20 // May be removed in the future, or may become standard depending
18 // on the outcomes of a variety of internal tests. 21 // on the outcomes of a variety of internal tests.
19 bool fDrawPathToCompressedTexture; 22 bool fDrawPathToCompressedTexture;
23
20 // Suppress prints for the GrContext. 24 // Suppress prints for the GrContext.
21 bool fSuppressPrints; 25 bool fSuppressPrints;
26
27 /** Overrides: These options override feature detection using backend API qu eries. These
28 overrides can only reduce the feature set or limits, never increase them beyond the
29 detected values. */
30
31 int fMaxTextureSizeOverride;
22 }; 32 };
23 33
24 #endif 34 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698