Changeset 195225 in webkit
- Timestamp:
- Jan 18, 2016, 5:38:27 AM (11 years ago)
- Location:
- releases/WebKitGTK/webkit-2.10/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/GraphicsContext3D.cpp (modified) (3 diffs)
-
platform/graphics/GraphicsContext3D.h (modified) (1 diff)
-
platform/graphics/opengl/GraphicsContext3DOpenGL.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog
r195220 r195225 1 2016-01-07 Brent Fulgham <bfulgham@apple.com> 2 3 Correct missing EXT_sRGB Format Handling 4 https://bugs.webkit.org/show_bug.cgi?id=152876 5 <rdar://problem/23284389> 6 7 Reviewed by Alex Christensen. 8 9 Tested by WebGL 1.0.4 suite. 10 11 * platform/graphics/GraphicsContext3D.cpp: 12 (getDataFormat): Handle missing SRGB and SRGB_ALPHA cases. 13 * platform/graphics/GraphicsContext3D.h: Add missing SRGB_ALPHA value from the Khronos standard. 14 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: 15 (WebCore::GraphicsContext3D::texImage2D): Add an assertion that we are not being handed 16 an internal format to a method that works with normal formats. 17 1 18 2016-01-07 Zalan Bujtas <zalan@apple.com> 2 19 -
releases/WebKitGTK/webkit-2.10/Source/WebCore/platform/graphics/GraphicsContext3D.cpp
r183432 r195225 63 63 dstFormat = GraphicsContext3D::DataFormatRA8; 64 64 break; 65 case GraphicsContext3D::SRGB: 66 dstFormat = GraphicsContext3D::DataFormatRGB8; 67 break; 68 case GraphicsContext3D::SRGB_ALPHA: 69 dstFormat = GraphicsContext3D::DataFormatRGBA8; 70 break; 65 71 default: 66 72 ASSERT_NOT_REACHED(); … … 93 99 dstFormat = GraphicsContext3D::DataFormatRA16F; 94 100 break; 101 case GraphicsContext3D::SRGB: 102 dstFormat = GraphicsContext3D::DataFormatRGB16F; 103 break; 104 case GraphicsContext3D::SRGB_ALPHA: 105 dstFormat = GraphicsContext3D::DataFormatRGBA16F; 106 break; 95 107 default: 96 108 ASSERT_NOT_REACHED(); … … 113 125 case GraphicsContext3D::LUMINANCE_ALPHA: 114 126 dstFormat = GraphicsContext3D::DataFormatRA32F; 127 break; 128 case GraphicsContext3D::SRGB: 129 dstFormat = GraphicsContext3D::DataFormatRGB32F; 130 break; 131 case GraphicsContext3D::SRGB_ALPHA: 132 dstFormat = GraphicsContext3D::DataFormatRGBA32F; 115 133 break; 116 134 default: -
releases/WebKitGTK/webkit-2.10/Source/WebCore/platform/graphics/GraphicsContext3D.h
r186169 r195225 505 505 SRGB = 0x8C40, 506 506 SRGB8 = 0x8C41, 507 SRGB_ALPHA = 0x8C42, 507 508 SRGB8_ALPHA8 = 0x8C43, 508 509 COMPARE_REF_TO_TEXTURE = 0x884E, -
releases/WebKitGTK/webkit-2.10/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
r183432 r195225 345 345 } 346 346 347 ASSERT(format != Extensions3D::SRGB8_ALPHA8_EXT); 347 348 if (format == Extensions3D::SRGB_ALPHA_EXT) 348 349 openGLFormat = GL_RGBA;
Note:
See TracChangeset
for help on using the changeset viewer.