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

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

Issue 1173203005: Work around for nexus 6 TexSubImage issue (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 5 years, 6 months 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 , fMinTextureSizeOverride(0) 18 , fMinTextureSizeOverride(0)
19 , fSuppressDualSourceBlending(false) 19 , fSuppressDualSourceBlending(false)
20 , fGeometryBufferMapThreshold(-1) {} 20 , fGeometryBufferMapThreshold(-1)
21 , fUseDrawInsteadOfPartialRenderTargetWrite(false) {}
21 22
22 // EXPERIMENTAL 23 // EXPERIMENTAL
23 // May be removed in the future, or may become standard depending 24 // May be removed in the future, or may become standard depending
24 // on the outcomes of a variety of internal tests. 25 // on the outcomes of a variety of internal tests.
25 bool fDrawPathToCompressedTexture; 26 bool fDrawPathToCompressedTexture;
26 27
27 // Suppress prints for the GrContext. 28 // Suppress prints for the GrContext.
28 bool fSuppressPrints; 29 bool fSuppressPrints;
29 30
30 /** Overrides: These options override feature detection using backend API qu eries. These 31 /** Overrides: These options override feature detection using backend API qu eries. These
31 overrides can only reduce the feature set or limits, never increase them beyond the 32 overrides can only reduce the feature set or limits, never increase them beyond the
32 detected values. */ 33 detected values. */
33 34
34 int fMaxTextureSizeOverride; 35 int fMaxTextureSizeOverride;
35 int fMinTextureSizeOverride; 36 int fMinTextureSizeOverride;
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;
43
44 /** some gpus have problems with partial writes of the rendertarget */
45 bool fUseDrawInsteadOfPartialRenderTargetWrite;
42 }; 46 };
43 47
44 #endif 48 #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