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

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
« no previous file with comments | « include/gpu/GrCaps.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() 14 GrContextOptions()
15 : fDrawPathToCompressedTexture(false) 15 : fDrawPathToCompressedTexture(false)
16 , fSuppressPrints(false) 16 , fSuppressPrints(false)
17 , fMaxTextureSizeOverride(SK_MaxS32) 17 , fMaxTextureSizeOverride(SK_MaxS32)
18 , fMaxTileSizeOverride(0) 18 , fMaxTileSizeOverride(0)
19 , fSuppressDualSourceBlending(false) 19 , fSuppressDualSourceBlending(false)
20 , fGeometryBufferMapThreshold(-1) 20 , fGeometryBufferMapThreshold(-1)
21 , fUseDrawInsteadOfPartialRenderTargetWrite(false) 21 , fUseDrawInsteadOfPartialRenderTargetWrite(false)
22 , fImmediateMode(false) {} 22 , fImmediateMode(false)
23 , fUseShaderSwizzling(false) {}
23 24
24 // EXPERIMENTAL 25 // EXPERIMENTAL
25 // May be removed in the future, or may become standard depending 26 // May be removed in the future, or may become standard depending
26 // on the outcomes of a variety of internal tests. 27 // on the outcomes of a variety of internal tests.
27 bool fDrawPathToCompressedTexture; 28 bool fDrawPathToCompressedTexture;
28 29
29 // Suppress prints for the GrContext. 30 // Suppress prints for the GrContext.
30 bool fSuppressPrints; 31 bool fSuppressPrints;
31 32
32 /** Overrides: These options override feature detection using backend API qu eries. These 33 /** Overrides: These options override feature detection using backend API qu eries. These
(...skipping 10 matching lines...) Expand all
43 buffers to CPU memory in order to update them. A value of -1 means the GrContext should 44 buffers to CPU memory in order to update them. A value of -1 means the GrContext should
44 deduce the optimal value for this platform. */ 45 deduce the optimal value for this platform. */
45 int fGeometryBufferMapThreshold; 46 int fGeometryBufferMapThreshold;
46 47
47 /** some gpus have problems with partial writes of the rendertarget */ 48 /** some gpus have problems with partial writes of the rendertarget */
48 bool fUseDrawInsteadOfPartialRenderTargetWrite; 49 bool fUseDrawInsteadOfPartialRenderTargetWrite;
49 50
50 /** The GrContext operates in immedidate mode. It will issue all draws to th e backend API 51 /** The GrContext operates in immedidate mode. It will issue all draws to th e backend API
51 immediately. Intended to ease debugging. */ 52 immediately. Intended to ease debugging. */
52 bool fImmediateMode; 53 bool fImmediateMode;
54
55 /** Force us to do all swizzling manually in the shader and don't rely on ex tensions to do
56 swizzling. */
57 bool fUseShaderSwizzling;
53 }; 58 };
54 59
55 #endif 60 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrCaps.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698