| OLD | NEW |
| 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() | 14 GrContextOptions() |
| 15 : fDrawPathToCompressedTexture(false) | 15 : fDrawPathToCompressedTexture(false) |
| 16 , fSuppressPrints(false) | 16 , fSuppressPrints(false) |
| 17 , fMaxTextureSizeOverride(SK_MaxS32) {} | 17 , fMaxTextureSizeOverride(SK_MaxS32) |
| 18 , fSuppressDualSourceBlending(false) {} |
| 18 | 19 |
| 19 // EXPERIMENTAL | 20 // EXPERIMENTAL |
| 20 // May be removed in the future, or may become standard depending | 21 // May be removed in the future, or may become standard depending |
| 21 // on the outcomes of a variety of internal tests. | 22 // on the outcomes of a variety of internal tests. |
| 22 bool fDrawPathToCompressedTexture; | 23 bool fDrawPathToCompressedTexture; |
| 23 | 24 |
| 24 // Suppress prints for the GrContext. | 25 // Suppress prints for the GrContext. |
| 25 bool fSuppressPrints; | 26 bool fSuppressPrints; |
| 26 | 27 |
| 27 /** Overrides: These options override feature detection using backend API qu
eries. These | 28 /** 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 overrides can only reduce the feature set or limits, never increase them
beyond the |
| 29 detected values. */ | 30 detected values. */ |
| 30 | 31 |
| 31 int fMaxTextureSizeOverride; | 32 int fMaxTextureSizeOverride; |
| 33 bool fSuppressDualSourceBlending; |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 #endif | 36 #endif |
| OLD | NEW |