OLD | NEW |
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 #include "GrGLCaps.h" | 9 #include "GrGLCaps.h" |
10 | 10 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 ctxInfo.hasExtension("GL_OES_standard_derivatives"); | 313 ctxInfo.hasExtension("GL_OES_standard_derivatives"); |
314 } | 314 } |
315 | 315 |
316 /************************************************************************** | 316 /************************************************************************** |
317 * GrCaps fields | 317 * GrCaps fields |
318 **************************************************************************/ | 318 **************************************************************************/ |
319 | 319 |
320 // We need dual source blending and the ability to disable multisample in or
der to support mixed | 320 // We need dual source blending and the ability to disable multisample in or
der to support mixed |
321 // samples in every corner case. | 321 // samples in every corner case. |
322 if (fMultisampleDisableSupport && glslCaps->dualSourceBlendingSupport()) { | 322 if (fMultisampleDisableSupport && glslCaps->dualSourceBlendingSupport()) { |
323 fMixedSamplesSupport = ctxInfo.hasExtension("GL_NV_framebuffer_mixed_sam
ples"); | 323 fMixedSamplesSupport = ctxInfo.hasExtension("GL_NV_framebuffer_mixed_sam
ples") || |
| 324 ctxInfo.hasExtension("GL_CHROMIUM_framebuffer_mixed_samples"); |
324 // Workaround NVIDIA bug related to glInvalidateFramebuffer and mixed sa
mples. | 325 // Workaround NVIDIA bug related to glInvalidateFramebuffer and mixed sa
mples. |
325 if (fMixedSamplesSupport && kNVIDIA_GrGLDriver == ctxInfo.driver()) { | 326 if (fMixedSamplesSupport && kNVIDIA_GrGLDriver == ctxInfo.driver()) { |
326 fDiscardRenderTargetSupport = false; | 327 fDiscardRenderTargetSupport = false; |
327 fInvalidateFBType = kNone_InvalidateFBType; | 328 fInvalidateFBType = kNone_InvalidateFBType; |
328 } | 329 } |
329 } | 330 } |
330 | 331 |
331 // fPathRenderingSupport and fMixedSamplesSupport must be set before calling
initFSAASupport. | 332 // fPathRenderingSupport and fMixedSamplesSupport must be set before calling
initFSAASupport. |
332 this->initFSAASupport(ctxInfo, gli); | 333 this->initFSAASupport(ctxInfo, gli); |
333 this->initBlendEqationSupport(ctxInfo); | 334 this->initBlendEqationSupport(ctxInfo); |
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr"; | 1348 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr"; |
1348 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba"; | 1349 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba"; |
1349 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba"; | 1350 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba"; |
1350 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba"; | 1351 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba"; |
1351 | 1352 |
1352 } | 1353 } |
1353 | 1354 |
1354 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1355 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
1355 | 1356 |
1356 | 1357 |
OLD | NEW |