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

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

Issue 2546783005: Revert of Enable sRGB on iOS, make sRGB decode support optional (Closed)
Patch Set: Created 4 years 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 | « include/gpu/GrContextOptions.h ('k') | 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 /// Are textures with GL_TEXTURE_RECTANGLE type supported. 338 /// Are textures with GL_TEXTURE_RECTANGLE type supported.
339 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } 339 bool rectangleTextureSupport() const { return fRectangleTextureSupport; }
340 340
341 /// GL_ARB_texture_swizzle 341 /// GL_ARB_texture_swizzle
342 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } 342 bool textureSwizzleSupport() const { return fTextureSwizzleSupport; }
343 343
344 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; } 344 bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodCont rolSupport; }
345 345
346 bool doManualMipmapping() const { return fDoManualMipmapping; } 346 bool doManualMipmapping() const { return fDoManualMipmapping; }
347 347
348 bool srgbDecodeDisableSupport() const { return fSRGBDecodeDisableSupport; }
349
350 /** 348 /**
351 * Returns a string containing the caps info. 349 * Returns a string containing the caps info.
352 */ 350 */
353 SkString dump() const override; 351 SkString dump() const override;
354 352
355 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } 353 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; }
356 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } 354 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; }
357 bool rgbaToBgraReadbackConversionsAreSlow() const { 355 bool rgbaToBgraReadbackConversionsAreSlow() const {
358 return fRGBAToBGRAReadbackConversionsAreSlow; 356 return fRGBAToBGRAReadbackConversionsAreSlow;
359 } 357 }
(...skipping 13 matching lines...) Expand all
373 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa ce*); 371 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa ce*);
374 void initGLSL(const GrGLContextInfo&); 372 void initGLSL(const GrGLContextInfo&);
375 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); 373 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*);
376 374
377 void onApplyOptionsOverrides(const GrContextOptions& options) override; 375 void onApplyOptionsOverrides(const GrContextOptions& options) override;
378 376
379 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); 377 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*);
380 void initBlendEqationSupport(const GrGLContextInfo&); 378 void initBlendEqationSupport(const GrGLContextInfo&);
381 void initStencilFormats(const GrGLContextInfo&); 379 void initStencilFormats(const GrGLContextInfo&);
382 // This must be called after initFSAASupport(). 380 // This must be called after initFSAASupport().
383 void initConfigTable(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterface*, 381 void initConfigTable(const GrGLContextInfo&, const GrGLInterface*, GrShaderC aps*);
384 GrShaderCaps*);
385 382
386 void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*, GrShaderCaps*); 383 void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*, GrShaderCaps*);
387 384
388 GrGLStandard fStandard; 385 GrGLStandard fStandard;
389 386
390 SkTArray<StencilFormat, true> fStencilFormats; 387 SkTArray<StencilFormat, true> fStencilFormats;
391 388
392 int fMaxFragmentUniformVectors; 389 int fMaxFragmentUniformVectors;
393 390
394 MSFBOType fMSFBOType; 391 MSFBOType fMSFBOType;
(...skipping 21 matching lines...) Expand all
416 bool fIsCoreProfile : 1; 413 bool fIsCoreProfile : 1;
417 bool fBindFragDataLocationSupport : 1; 414 bool fBindFragDataLocationSupport : 1;
418 bool fRGBA8888PixelsOpsAreSlow : 1; 415 bool fRGBA8888PixelsOpsAreSlow : 1;
419 bool fPartialFBOReadIsSlow : 1; 416 bool fPartialFBOReadIsSlow : 1;
420 bool fBindUniformLocationSupport : 1; 417 bool fBindUniformLocationSupport : 1;
421 bool fRectangleTextureSupport : 1; 418 bool fRectangleTextureSupport : 1;
422 bool fTextureSwizzleSupport : 1; 419 bool fTextureSwizzleSupport : 1;
423 bool fMipMapLevelAndLodControlSupport : 1; 420 bool fMipMapLevelAndLodControlSupport : 1;
424 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; 421 bool fRGBAToBGRAReadbackConversionsAreSlow : 1;
425 bool fDoManualMipmapping : 1; 422 bool fDoManualMipmapping : 1;
426 bool fSRGBDecodeDisableSupport : 1;
427 423
428 uint32_t fBlitFramebufferFlags; 424 uint32_t fBlitFramebufferFlags;
429 425
430 /** Number type of the components (with out considering number of bits.) */ 426 /** Number type of the components (with out considering number of bits.) */
431 enum FormatType { 427 enum FormatType {
432 kNormalizedFixedPoint_FormatType, 428 kNormalizedFixedPoint_FormatType,
433 kFloat_FormatType, 429 kFloat_FormatType,
434 kInteger_FormatType, 430 kInteger_FormatType,
435 }; 431 };
436 432
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 496
501 GrSwizzle fSwizzle; 497 GrSwizzle fSwizzle;
502 }; 498 };
503 499
504 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 500 ConfigInfo fConfigTable[kGrPixelConfigCnt];
505 501
506 typedef GrCaps INHERITED; 502 typedef GrCaps INHERITED;
507 }; 503 };
508 504
509 #endif 505 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContextOptions.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698