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

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

Issue 1420033005: Create swizzle table inside of glsl caps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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
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() 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 , fSuppressDualSourceBlending(false)
19 , fGeometryBufferMapThreshold(-1) 19 , fGeometryBufferMapThreshold(-1)
20 , fUseDrawInsteadOfPartialRenderTargetWrite(false) 20 , fUseDrawInsteadOfPartialRenderTargetWrite(false)
21 , fImmediateMode(false) {} 21 , fImmediateMode(false)
22 , fUseShaderSwizzling(false) {}
22 23
23 // EXPERIMENTAL 24 // EXPERIMENTAL
24 // May be removed in the future, or may become standard depending 25 // May be removed in the future, or may become standard depending
25 // on the outcomes of a variety of internal tests. 26 // on the outcomes of a variety of internal tests.
26 bool fDrawPathToCompressedTexture; 27 bool fDrawPathToCompressedTexture;
27 28
28 // Suppress prints for the GrContext. 29 // Suppress prints for the GrContext.
29 bool fSuppressPrints; 30 bool fSuppressPrints;
30 31
31 /** Overrides: These options override feature detection using backend API qu eries. These 32 /** Overrides: These options override feature detection using backend API qu eries. These
32 overrides can only reduce the feature set or limits, never increase them beyond the 33 overrides can only reduce the feature set or limits, never increase them beyond the
33 detected values. */ 34 detected values. */
34 35
35 int fMaxTextureSizeOverride; 36 int fMaxTextureSizeOverride;
36 bool fSuppressDualSourceBlending; 37 bool fSuppressDualSourceBlending;
37 38
38 /** the threshold in bytes above which we will use a buffer mapping API to m ap vertex and index 39 /** the threshold in bytes above which we will use a buffer mapping API to m ap vertex and index
39 buffers to CPU memory in order to update them. A value of -1 means the GrContext should 40 buffers to CPU memory in order to update them. A value of -1 means the GrContext should
40 deduce the optimal value for this platform. */ 41 deduce the optimal value for this platform. */
41 int fGeometryBufferMapThreshold; 42 int fGeometryBufferMapThreshold;
42 43
43 /** some gpus have problems with partial writes of the rendertarget */ 44 /** some gpus have problems with partial writes of the rendertarget */
44 bool fUseDrawInsteadOfPartialRenderTargetWrite; 45 bool fUseDrawInsteadOfPartialRenderTargetWrite;
45 46
46 /** The GrContext operates in immedidate mode. It will issue all draws to th e backend API 47 /** The GrContext operates in immedidate mode. It will issue all draws to th e backend API
47 immediately. Intended to ease debugging. */ 48 immediately. Intended to ease debugging. */
48 bool fImmediateMode; 49 bool fImmediateMode;
50
51 /** Force us to do all swizzling manually in the shader and don't rely on ex tensions to do
52 swizzling. */
53 bool fUseShaderSwizzling;
49 }; 54 };
50 55
51 #endif 56 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrCaps.h ('k') | src/gpu/GrCaps.cpp » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698