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

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

Issue 1159713006: add context override of GeometryBufferMapThreshold (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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 | « gyp/gpu.gypi ('k') | include/gpu/GrConfig.h » ('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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 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 #ifndef GrCaps_DEFINED 8 #ifndef GrCaps_DEFINED
9 #define GrCaps_DEFINED 9 #define GrCaps_DEFINED
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 bool isConfigTexturable(GrPixelConfig config) const { 191 bool isConfigTexturable(GrPixelConfig config) const {
192 SkASSERT(kGrPixelConfigCnt > config); 192 SkASSERT(kGrPixelConfigCnt > config);
193 return fConfigTextureSupport[config]; 193 return fConfigTextureSupport[config];
194 } 194 }
195 195
196 bool suppressPrints() const { return fSupressPrints; } 196 bool suppressPrints() const { return fSupressPrints; }
197 197
198 bool drawPathMasksToCompressedTexturesSupport() const { 198 bool drawPathMasksToCompressedTexturesSupport() const {
199 return fDrawPathMasksToCompressedTextureSupport; } 199 return fDrawPathMasksToCompressedTextureSupport;
200 }
201
202 size_t geometryBufferMapThreshold() const {
203 return fGeometryBufferMapThreshold;
204 }
200 205
201 protected: 206 protected:
202 /** Subclasses must call this at the end of their constructors in order to a pply caps 207 /** Subclasses must call this at the end of their constructors in order to a pply caps
203 overrides requested by the client. Note that overrides will only reduce the caps never 208 overrides requested by the client. Note that overrides will only reduce the caps never
204 expand them. */ 209 expand them. */
205 void applyOptionsOverrides(const GrContextOptions& options); 210 void applyOptionsOverrides(const GrContextOptions& options);
206 211
207 SkAutoTUnref<GrShaderCaps> fShaderCaps; 212 SkAutoTUnref<GrShaderCaps> fShaderCaps;
208 213
209 bool fNPOTTextureTileSupport : 1; 214 bool fNPOTTextureTileSupport : 1;
(...skipping 16 matching lines...) Expand all
226 int fMaxTextureSize; 231 int fMaxTextureSize;
227 int fMaxSampleCount; 232 int fMaxSampleCount;
228 233
229 // The first entry for each config is without msaa and the second is with. 234 // The first entry for each config is without msaa and the second is with.
230 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 235 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
231 bool fConfigTextureSupport[kGrPixelConfigCnt]; 236 bool fConfigTextureSupport[kGrPixelConfigCnt];
232 237
233 private: 238 private:
234 bool fSupressPrints : 1; 239 bool fSupressPrints : 1;
235 bool fDrawPathMasksToCompressedTextureSupport : 1; 240 bool fDrawPathMasksToCompressedTextureSupport : 1;
241 size_t fGeometryBufferMapThreshold;
236 242
237 typedef SkRefCnt INHERITED; 243 typedef SkRefCnt INHERITED;
238 }; 244 };
239 245
240 #endif 246 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698