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

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

Issue 2221393004: Include EXT_window_rectangles API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | include/gpu/gl/GrGLFunctions.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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // We require the sample count to be less than maxColorSampleCount and maxSt encilSampleCount. 257 // We require the sample count to be less than maxColorSampleCount and maxSt encilSampleCount.
258 // If we are using mixed samples, we only care about stencil. 258 // If we are using mixed samples, we only care about stencil.
259 int maxSampleCount() const { 259 int maxSampleCount() const {
260 if (this->usesMixedSamples()) { 260 if (this->usesMixedSamples()) {
261 return this->maxStencilSampleCount(); 261 return this->maxStencilSampleCount();
262 } else { 262 } else {
263 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou nt()); 263 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou nt());
264 } 264 }
265 } 265 }
266 266
267 int maxWindowRectangles() const { return fMaxWindowRectangles; }
267 268
268 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; 269 virtual bool isConfigTexturable(GrPixelConfig config) const = 0;
269 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; 270 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
270 271
271 bool suppressPrints() const { return fSuppressPrints; } 272 bool suppressPrints() const { return fSuppressPrints; }
272 273
273 bool immediateFlush() const { return fImmediateFlush; } 274 bool immediateFlush() const { return fImmediateFlush; }
274 275
275 size_t bufferMapThreshold() const { 276 size_t bufferMapThreshold() const {
276 SkASSERT(fBufferMapThreshold >= 0); 277 SkASSERT(fBufferMapThreshold >= 0);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 uint32_t fMapBufferFlags; 334 uint32_t fMapBufferFlags;
334 int fBufferMapThreshold; 335 int fBufferMapThreshold;
335 336
336 int fMaxRenderTargetSize; 337 int fMaxRenderTargetSize;
337 int fMaxVertexAttributes; 338 int fMaxVertexAttributes;
338 int fMaxTextureSize; 339 int fMaxTextureSize;
339 int fMaxTileSize; 340 int fMaxTileSize;
340 int fMaxColorSampleCount; 341 int fMaxColorSampleCount;
341 int fMaxStencilSampleCount; 342 int fMaxStencilSampleCount;
342 int fMaxRasterSamples; 343 int fMaxRasterSamples;
344 int fMaxWindowRectangles;
343 345
344 private: 346 private:
345 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 347 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
346 348
347 bool fSuppressPrints : 1; 349 bool fSuppressPrints : 1;
348 bool fImmediateFlush: 1; 350 bool fImmediateFlush: 1;
349 351
350 typedef SkRefCnt INHERITED; 352 typedef SkRefCnt INHERITED;
351 }; 353 };
352 354
353 #endif 355 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/gl/GrGLFunctions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698