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

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

Issue 1507373004: Use a pseudo-extension CHROMIUM_framebuffer_mixed_samples (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 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 | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLInterface.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 #include "GrGLCaps.h" 9 #include "GrGLCaps.h"
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698