OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrCaps.h" | 9 #include "GrCaps.h" |
10 #include "GrContextOptions.h" | 10 #include "GrContextOptions.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 fFullClearIsFree = false; | 95 fFullClearIsFree = false; |
96 fMustClearUploadedBufferData = false; | 96 fMustClearUploadedBufferData = false; |
97 | 97 |
98 fUseDrawInsteadOfClear = false; | 98 fUseDrawInsteadOfClear = false; |
99 | 99 |
100 fBlendEquationSupport = kBasic_BlendEquationSupport; | 100 fBlendEquationSupport = kBasic_BlendEquationSupport; |
101 fAdvBlendEqBlacklist = 0; | 101 fAdvBlendEqBlacklist = 0; |
102 | 102 |
103 fMapBufferFlags = kNone_MapFlags; | 103 fMapBufferFlags = kNone_MapFlags; |
104 | 104 |
105 fMaxRenderTargetSize = 0; | 105 fMaxRenderTargetSize = 1; |
106 fMaxTextureSize = 0; | 106 fMaxTextureSize = 1; |
107 fMinTextureSize = 0; | 107 fMinTextureSize = 1; |
108 fMaxSampleCount = 0; | 108 fMaxSampleCount = 0; |
109 | 109 |
110 memset(fConfigRenderSupport, 0, sizeof(fConfigRenderSupport)); | 110 memset(fConfigRenderSupport, 0, sizeof(fConfigRenderSupport)); |
111 memset(fConfigTextureSupport, 0, sizeof(fConfigTextureSupport)); | 111 memset(fConfigTextureSupport, 0, sizeof(fConfigTextureSupport)); |
112 | 112 |
113 fSupressPrints = options.fSuppressPrints; | 113 fSupressPrints = options.fSuppressPrints; |
114 fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedText
ure; | 114 fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedText
ure; |
115 fGeometryBufferMapThreshold = options.fGeometryBufferMapThreshold; | 115 fGeometryBufferMapThreshold = options.fGeometryBufferMapThreshold; |
116 fUseDrawInsteadOfPartialRenderTargetWrite = options.fUseDrawInsteadOfPartial
RenderTargetWrite; | 116 fUseDrawInsteadOfPartialRenderTargetWrite = options.fUseDrawInsteadOfPartial
RenderTargetWrite; |
117 | 117 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); | 236 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); |
237 | 237 |
238 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 238 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
239 r.appendf("%s is uploadable to a texture: %s\n", | 239 r.appendf("%s is uploadable to a texture: %s\n", |
240 kConfigNames[i], | 240 kConfigNames[i], |
241 gNY[fConfigTextureSupport[i]]); | 241 gNY[fConfigTextureSupport[i]]); |
242 } | 242 } |
243 | 243 |
244 return r; | 244 return r; |
245 } | 245 } |
OLD | NEW |