Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GrContextOptions.h
1 /*
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 
15  : fSuppressPrints(false)
16  , fMaxTextureSizeOverride(SK_MaxS32)
18  , fSuppressDualSourceBlending(false)
21  , fImmediateMode(false)
22  , fClipBatchToBounds(false)
23  , fDrawBatchBounds(false)
24  , fMaxBatchLookback(-1)
25  , fMaxBatchLookahead(-1)
26  , fUseShaderSwizzling(false)
27  , fDoManualMipmapping(false)
28  , fEnableInstancedRendering(false) {}
29 
30  // Suppress prints for the GrContext.
31  bool fSuppressPrints;
32 
41  bool fSuppressDualSourceBlending;
42 
47 
50 
54 
58 
63 
67  int fMaxBatchLookahead;
68 
72 
77 
81 };
82 
83 #endif
Definition: GrContextOptions.h:13
int fMaxTextureSizeOverride
Overrides: These options override feature detection using backend API queries.
Definition: GrContextOptions.h:37
int fMaxBatchLookback
For debugging, override the default maximum look-back or look-ahead window for GrBatch combining...
Definition: GrContextOptions.h:66
bool fUseShaderSwizzling
Force us to do all swizzling manually in the shader and don't rely on extensions to do swizzling...
Definition: GrContextOptions.h:71
bool fUseDrawInsteadOfPartialRenderTargetWrite
some gpus have problems with partial writes of the rendertarget
Definition: GrContextOptions.h:49
bool fClipBatchToBounds
For debugging purposes turn each GrBatch's bounds into a clip rect.
Definition: GrContextOptions.h:57
int fMaxTileSizeOverride
If non-zero, overrides the maximum size of a tile for sw-backed images and bitmaps rendered by SkGpuD...
Definition: GrContextOptions.h:40
bool fDoManualMipmapping
Construct mipmaps manually, via repeated downsampling draw-calls.
Definition: GrContextOptions.h:76
int fBufferMapThreshold
the threshold in bytes above which we will use a buffer mapping API to map vertex and index buffers t...
Definition: GrContextOptions.h:46
bool fDrawBatchBounds
For debugging purposes draw a wireframe device bounds rect for each GrBatch.
Definition: GrContextOptions.h:62
bool fImmediateMode
The GrContext operates in immediate mode.
Definition: GrContextOptions.h:53
bool fEnableInstancedRendering
Enable instanced rendering as long as all required functionality is supported by the HW...
Definition: GrContextOptions.h:80