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

Side by Side Diff: src/gpu/gl/GrGLCaps.h

Issue 1750833003: Disabling calls to TexParameteri when the values do not exist on ES2. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Making the check for mipmap lod part of caps. Created 4 years, 9 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 | src/gpu/gl/GrGLCaps.cpp » ('j') | src/gpu/gl/GrGLCaps.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 8
9 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 /// GL_ARB_texture_swizzle 335 /// GL_ARB_texture_swizzle
336 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } 336 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; }
337 337
338 /** 338 /**
339 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo r attachments? 339 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo r attachments?
340 * If false this does not mean sRGB is not supported but rather that if it i s supported 340 * If false this does not mean sRGB is not supported but rather that if it i s supported
341 * it cannot be turned off for configs that support it. 341 * it cannot be turned off for configs that support it.
342 */ 342 */
343 bool srgbWriteControl() const { return fSRGBWriteControl; } 343 bool srgbWriteControl() const { return fSRGBWriteControl; }
344 344
345 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; }
346
345 /** 347 /**
346 * Returns a string containing the caps info. 348 * Returns a string containing the caps info.
347 */ 349 */
348 SkString dump() const override; 350 SkString dump() const override;
349 351
350 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } 352 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; }
351 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } 353 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; }
352 354
353 const GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fS haderCaps.get()); } 355 const GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fS haderCaps.get()); }
354 356
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 bool fUseNonVBOVertexAndIndexDynamicData : 1; 413 bool fUseNonVBOVertexAndIndexDynamicData : 1;
412 bool fIsCoreProfile : 1; 414 bool fIsCoreProfile : 1;
413 bool fBindFragDataLocationSupport : 1; 415 bool fBindFragDataLocationSupport : 1;
414 bool fSRGBWriteControl : 1; 416 bool fSRGBWriteControl : 1;
415 bool fRGBA8888PixelsOpsAreSlow : 1; 417 bool fRGBA8888PixelsOpsAreSlow : 1;
416 bool fPartialFBOReadIsSlow : 1; 418 bool fPartialFBOReadIsSlow : 1;
417 bool fBindUniformLocationSupport : 1; 419 bool fBindUniformLocationSupport : 1;
418 bool fExternalTextureSupport : 1; 420 bool fExternalTextureSupport : 1;
419 bool fRectangleTextureSupport : 1; 421 bool fRectangleTextureSupport : 1;
420 bool fTextureSwizzleSupport : 1; 422 bool fTextureSwizzleSupport : 1;
423 bool fMipMapLevelAndLodControlSupport : 1;
421 424
422 BlitFramebufferSupport fBlitFramebufferSupport; 425 BlitFramebufferSupport fBlitFramebufferSupport;
423 426
424 /** Number type of the components (with out considering number of bits.) */ 427 /** Number type of the components (with out considering number of bits.) */
425 enum FormatType { 428 enum FormatType {
426 kNormalizedFixedPoint_FormatType, 429 kNormalizedFixedPoint_FormatType,
427 kFloat_FormatType, 430 kFloat_FormatType,
428 }; 431 };
429 432
430 struct ReadPixelsFormat { 433 struct ReadPixelsFormat {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 492
490 GrSwizzle fSwizzle; 493 GrSwizzle fSwizzle;
491 }; 494 };
492 495
493 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 496 ConfigInfo fConfigTable[kGrPixelConfigCnt];
494 497
495 typedef GrCaps INHERITED; 498 typedef GrCaps INHERITED;
496 }; 499 };
497 500
498 #endif 501 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | src/gpu/gl/GrGLCaps.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698