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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
535 fConfigRenderSupport[kSRGBA_8888_GrPixelConfig][kYes_MSAA] = tru e; | 535 fConfigRenderSupport[kSRGBA_8888_GrPixelConfig][kYes_MSAA] = tru e; |
536 } | 536 } |
537 } | 537 } |
538 } | 538 } |
539 | 539 |
540 if (this->isConfigTexturable(kRGBA_float_GrPixelConfig)) { | 540 if (this->isConfigTexturable(kRGBA_float_GrPixelConfig)) { |
541 if (kGL_GrGLStandard == standard) { | 541 if (kGL_GrGLStandard == standard) { |
542 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true; | 542 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true; |
543 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = true; | 543 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = true; |
544 } else { | 544 } else { |
545 if (ctxInfo.hasExtension("GL_EXT_color_buffer_float")) { | 545 if (ctxInfo.hasExtension("GL_EXT_color_buffer_float") && |
546 ctxInfo.glslGeneration() >= k330_GrGLSLGeneration) { | |
bsalomon
2015/06/17 20:10:46
need this for desktop too?
| |
546 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true ; | 547 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true ; |
547 } else { | 548 } else { |
548 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = fals e; | 549 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = fals e; |
549 } | 550 } |
550 // for now we don't support floating point MSAA on ES | 551 // for now we don't support floating point MSAA on ES |
551 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = false; | 552 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = false; |
552 } | 553 } |
553 } | 554 } |
554 | 555 |
555 if (this->isConfigTexturable(kAlpha_half_GrPixelConfig)) { | 556 if (this->isConfigTexturable(kAlpha_half_GrPixelConfig)) { |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1176 if (fGeometryShaderSupport) { | 1177 if (fGeometryShaderSupport) { |
1177 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1178 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
1178 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; | 1179 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; |
1179 } | 1180 } |
1180 } | 1181 } |
1181 } | 1182 } |
1182 | 1183 |
1183 | 1184 |
1184 | 1185 |
1185 | 1186 |
OLD | NEW |