| 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() : 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 | 
| OLD | NEW |