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

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

Issue 1974943002: Simplify GrSWMaskHelper (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix indent Created 4 years, 7 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 | « bench/nanobench.cpp ('k') | include/gpu/GrContextOptions.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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 } 248 }
249 249
250 250
251 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; 251 virtual bool isConfigTexturable(GrPixelConfig config) const = 0;
252 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; 252 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
253 253
254 bool suppressPrints() const { return fSuppressPrints; } 254 bool suppressPrints() const { return fSuppressPrints; }
255 255
256 bool immediateFlush() const { return fImmediateFlush; } 256 bool immediateFlush() const { return fImmediateFlush; }
257 257
258 bool drawPathMasksToCompressedTexturesSupport() const {
259 return fDrawPathMasksToCompressedTextureSupport;
260 }
261
262 size_t bufferMapThreshold() const { 258 size_t bufferMapThreshold() const {
263 SkASSERT(fBufferMapThreshold >= 0); 259 SkASSERT(fBufferMapThreshold >= 0);
264 return fBufferMapThreshold; 260 return fBufferMapThreshold;
265 } 261 }
266 262
267 bool supportsInstancedDraws() const { 263 bool supportsInstancedDraws() const {
268 return fSupportsInstancedDraws; 264 return fSupportsInstancedDraws;
269 } 265 }
270 266
271 bool fullClearIsFree() const { return fFullClearIsFree; } 267 bool fullClearIsFree() const { return fFullClearIsFree; }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 int fMaxTileSize; 322 int fMaxTileSize;
327 int fMaxColorSampleCount; 323 int fMaxColorSampleCount;
328 int fMaxStencilSampleCount; 324 int fMaxStencilSampleCount;
329 int fMaxRasterSamples; 325 int fMaxRasterSamples;
330 326
331 private: 327 private:
332 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 328 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
333 329
334 bool fSuppressPrints : 1; 330 bool fSuppressPrints : 1;
335 bool fImmediateFlush: 1; 331 bool fImmediateFlush: 1;
336 bool fDrawPathMasksToCompressedTextureSupport : 1;
337 332
338 typedef SkRefCnt INHERITED; 333 typedef SkRefCnt INHERITED;
339 }; 334 };
340 335
341 #endif 336 #endif
OLDNEW
« no previous file with comments | « bench/nanobench.cpp ('k') | include/gpu/GrContextOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698