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

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

Issue 2026393004: Add a caps bit to enable/disable the new manual mip-mapper (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('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 * 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; } 326 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; }
327 327
328 /// Are textures with GL_TEXTURE_RECTANGLE type supported. 328 /// Are textures with GL_TEXTURE_RECTANGLE type supported.
329 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } 329 bool rectangleTextureSupport() const { return fRectangleTextureSupport; }
330 330
331 /// GL_ARB_texture_swizzle 331 /// GL_ARB_texture_swizzle
332 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } 332 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; }
333 333
334 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; } 334 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; }
335 335
336 bool doManualMipmapping() const { return fDoManualMipmapping; }
337
336 /** 338 /**
337 * Returns a string containing the caps info. 339 * Returns a string containing the caps info.
338 */ 340 */
339 SkString dump() const override; 341 SkString dump() const override;
340 342
341 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } 343 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; }
342 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } 344 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; }
343 bool rgbaToBgraReadbackConversionsAreSlow() const { 345 bool rgbaToBgraReadbackConversionsAreSlow() const {
344 return fRGBAToBGRAReadbackConversionsAreSlow; 346 return fRGBAToBGRAReadbackConversionsAreSlow;
345 } 347 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 bool fUseNonVBOVertexAndIndexDynamicData : 1; 405 bool fUseNonVBOVertexAndIndexDynamicData : 1;
404 bool fIsCoreProfile : 1; 406 bool fIsCoreProfile : 1;
405 bool fBindFragDataLocationSupport : 1; 407 bool fBindFragDataLocationSupport : 1;
406 bool fRGBA8888PixelsOpsAreSlow : 1; 408 bool fRGBA8888PixelsOpsAreSlow : 1;
407 bool fPartialFBOReadIsSlow : 1; 409 bool fPartialFBOReadIsSlow : 1;
408 bool fBindUniformLocationSupport : 1; 410 bool fBindUniformLocationSupport : 1;
409 bool fRectangleTextureSupport : 1; 411 bool fRectangleTextureSupport : 1;
410 bool fTextureSwizzleSupport : 1; 412 bool fTextureSwizzleSupport : 1;
411 bool fMipMapLevelAndLodControlSupport : 1; 413 bool fMipMapLevelAndLodControlSupport : 1;
412 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; 414 bool fRGBAToBGRAReadbackConversionsAreSlow : 1;
415 bool fDoManualMipmapping : 1;
413 416
414 BlitFramebufferSupport fBlitFramebufferSupport; 417 BlitFramebufferSupport fBlitFramebufferSupport;
415 418
416 /** Number type of the components (with out considering number of bits.) */ 419 /** Number type of the components (with out considering number of bits.) */
417 enum FormatType { 420 enum FormatType {
418 kNormalizedFixedPoint_FormatType, 421 kNormalizedFixedPoint_FormatType,
419 kFloat_FormatType, 422 kFloat_FormatType,
420 }; 423 };
421 424
422 struct ReadPixelsFormat { 425 struct ReadPixelsFormat {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 485
483 GrSwizzle fSwizzle; 486 GrSwizzle fSwizzle;
484 }; 487 };
485 488
486 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 489 ConfigInfo fConfigTable[kGrPixelConfigCnt];
487 490
488 typedef GrCaps INHERITED; 491 typedef GrCaps INHERITED;
489 }; 492 };
490 493
491 #endif 494 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698