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

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

Issue 1432503003: Comments Style: s/skbug.com/bug.skia.org/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: include Created 5 years, 1 month 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/effects/GrConvexPolyEffect.cpp ('k') | src/pdf/SkPDFDevice.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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 srgbSupport = true; 157 srgbSupport = true;
158 } else if (ctxInfo.hasExtension("GL_EXT_texture_sRGB")) { 158 } else if (ctxInfo.hasExtension("GL_EXT_texture_sRGB")) {
159 if (ctxInfo.hasExtension("GL_ARB_framebuffer_sRGB") || 159 if (ctxInfo.hasExtension("GL_ARB_framebuffer_sRGB") ||
160 ctxInfo.hasExtension("GL_EXT_framebuffer_sRGB")) { 160 ctxInfo.hasExtension("GL_EXT_framebuffer_sRGB")) {
161 srgbSupport = true; 161 srgbSupport = true;
162 } 162 }
163 } 163 }
164 // All the above srgb extensions support toggling srgb writes 164 // All the above srgb extensions support toggling srgb writes
165 fSRGBWriteControl = srgbSupport; 165 fSRGBWriteControl = srgbSupport;
166 } else { 166 } else {
167 // See http://skbug.com/4148 for PowerVR issue. 167 // See https://bug.skia.org/4148 for PowerVR issue.
168 srgbSupport = kPowerVRRogue_GrGLRenderer != ctxInfo.renderer() && 168 srgbSupport = kPowerVRRogue_GrGLRenderer != ctxInfo.renderer() &&
169 (ctxInfo.version() >= GR_GL_VER(3,0) || ctxInfo.hasExtensi on("GL_EXT_sRGB")); 169 (ctxInfo.version() >= GR_GL_VER(3,0) || ctxInfo.hasExtensi on("GL_EXT_sRGB"));
170 // ES through 3.1 requires EXT_srgb_write_control to support toggling 170 // ES through 3.1 requires EXT_srgb_write_control to support toggling
171 // sRGB writing for destinations. 171 // sRGB writing for destinations.
172 fSRGBWriteControl = ctxInfo.hasExtension("GL_EXT_sRGB_write_control"); 172 fSRGBWriteControl = ctxInfo.hasExtension("GL_EXT_sRGB_write_control");
173 } 173 }
174 174
175 // Frag Coords Convention support is not part of ES 175 // Frag Coords Convention support is not part of ES
176 // Known issue on at least some Intel platforms: 176 // Known issue on at least some Intel platforms:
177 // http://code.google.com/p/skia/issues/detail?id=946 177 // http://code.google.com/p/skia/issues/detail?id=946
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 if (kGL_GrGLStandard == standard) { 255 if (kGL_GrGLStandard == standard) {
256 if (version >= GR_GL_VER(3, 0)) { 256 if (version >= GR_GL_VER(3, 0)) {
257 fBindFragDataLocationSupport = true; 257 fBindFragDataLocationSupport = true;
258 } 258 }
259 } else { 259 } else {
260 if (version >= GR_GL_VER(3, 0) && ctxInfo.hasExtension("GL_EXT_blend_fun c_extended")) { 260 if (version >= GR_GL_VER(3, 0) && ctxInfo.hasExtension("GL_EXT_blend_fun c_extended")) {
261 fBindFragDataLocationSupport = true; 261 fBindFragDataLocationSupport = true;
262 } 262 }
263 } 263 }
264 264
265 #if 0 // Disabled due to http://skbug.com/4454 265 #if 0 // Disabled due to https://bug.skia.org/4454
266 fBindUniformLocationSupport = ctxInfo.hasExtension("GL_CHROMIUM_bind_uniform _location"); 266 fBindUniformLocationSupport = ctxInfo.hasExtension("GL_CHROMIUM_bind_uniform _location");
267 #else 267 #else
268 fBindUniformLocationSupport = false; 268 fBindUniformLocationSupport = false;
269 #endif 269 #endif
270 270
271 #ifdef SK_BUILD_FOR_WIN 271 #ifdef SK_BUILD_FOR_WIN
272 // We're assuming that on Windows Chromium we're using ANGLE. 272 // We're assuming that on Windows Chromium we're using ANGLE.
273 bool isANGLE = kANGLE_GrGLDriver == ctxInfo.driver() || 273 bool isANGLE = kANGLE_GrGLDriver == ctxInfo.driver() ||
274 kChromium_GrGLDriver == ctxInfo.driver(); 274 kChromium_GrGLDriver == ctxInfo.driver();
275 // Angle has slow read/write pixel paths for 32bit RGBA (but fast for BGRA). 275 // Angle has slow read/write pixel paths for 32bit RGBA (but fast for BGRA).
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 bool srgbSupport) { 782 bool srgbSupport) {
783 GrGLStandard standard = ctxInfo.standard(); 783 GrGLStandard standard = ctxInfo.standard();
784 GrGLVersion version = ctxInfo.version(); 784 GrGLVersion version = ctxInfo.version();
785 785
786 // Base texture support 786 // Base texture support
787 fConfigTextureSupport[kAlpha_8_GrPixelConfig] = true; 787 fConfigTextureSupport[kAlpha_8_GrPixelConfig] = true;
788 fConfigTextureSupport[kRGB_565_GrPixelConfig] = true; 788 fConfigTextureSupport[kRGB_565_GrPixelConfig] = true;
789 fConfigTextureSupport[kRGBA_4444_GrPixelConfig] = true; 789 fConfigTextureSupport[kRGBA_4444_GrPixelConfig] = true;
790 fConfigTextureSupport[kRGBA_8888_GrPixelConfig] = true; 790 fConfigTextureSupport[kRGBA_8888_GrPixelConfig] = true;
791 791
792 // Disable this for now, while we investigate skbug.com/4333 792 // Disable this for now, while we investigate https://bug.skia.org/4333
793 if (false) { 793 if (false) {
794 // Check for 8-bit palette.. 794 // Check for 8-bit palette..
795 GrGLint numFormats; 795 GrGLint numFormats;
796 GR_GL_GetIntegerv(gli, GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS, &numFormats ); 796 GR_GL_GetIntegerv(gli, GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS, &numFormats );
797 if (numFormats) { 797 if (numFormats) {
798 SkAutoSTMalloc<10, GrGLint> formats(numFormats); 798 SkAutoSTMalloc<10, GrGLint> formats(numFormats);
799 GR_GL_GetIntegerv(gli, GR_GL_COMPRESSED_TEXTURE_FORMATS, formats); 799 GR_GL_GetIntegerv(gli, GR_GL_COMPRESSED_TEXTURE_FORMATS, formats);
800 for (int i = 0; i < numFormats; ++i) { 800 for (int i = 0; i < numFormats; ++i) {
801 if (GR_GL_PALETTE8_RGBA8 == formats[i]) { 801 if (GR_GL_PALETTE8_RGBA8 == formats[i]) {
802 fConfigTextureSupport[kIndex_8_GrPixelConfig] = true; 802 fConfigTextureSupport[kIndex_8_GrPixelConfig] = true;
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr"; 1311 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr";
1312 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba"; 1312 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba";
1313 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba"; 1313 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba";
1314 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba"; 1314 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba";
1315 1315
1316 } 1316 }
1317 1317
1318 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} 1318 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {}
1319 1319
1320 1320
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConvexPolyEffect.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698