Changeset 287984 in webkit
- Timestamp:
- Jan 13, 2022, 11:11:51 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
html/canvas/WebGLRenderingContextBase.cpp (modified) (1 diff)
-
platform/graphics/opengl/GraphicsContextGLOpenGL.cpp (modified) (1 diff)
-
platform/graphics/opengl/GraphicsContextGLOpenGL.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r287983 r287984 1 2022-01-13 Alejandro G. Castro <alex@igalia.com> 2 3 Remove the code inside USE(OPENGL) && ENABLE(WEBGL2) 4 https://bugs.webkit.org/show_bug.cgi?id=235178 5 6 Reviewed by Dean Jackson. 7 8 No port is supporting WebGL2 without ANGLE nowadays, that code is 9 historical and we can remove it. 10 11 * html/canvas/WebGLRenderingContextBase.cpp: 12 (WebCore::getRestartIndex): Deleted. 13 * platform/graphics/opengl/GraphicsContextGLOpenGL.cpp: 14 (WebCore::GraphicsContextGLOpenGL::primitiveRestartIndex): Deleted. 15 * platform/graphics/opengl/GraphicsContextGLOpenGL.h: 16 1 17 2022-01-13 Alejandro G. Castro <alex@igalia.com> 2 18 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r287983 r287984 2766 2766 markContextChangedAndNotifyCanvasObserver(); 2767 2767 } 2768 2769 #if USE(OPENGL) && ENABLE(WEBGL2)2770 static GCGLuint getRestartIndex(GCGLenum type)2771 {2772 switch (type) {2773 case GraphicsContextGL::UNSIGNED_BYTE:2774 return std::numeric_limits<GCGLubyte>::max();2775 case GraphicsContextGL::UNSIGNED_SHORT:2776 return std::numeric_limits<GCGLushort>::max();2777 case GraphicsContextGL::UNSIGNED_INT:2778 return std::numeric_limits<GCGLuint>::max();2779 }2780 2781 return 0;2782 }2783 #endif2784 2768 2785 2769 void WebGLRenderingContextBase::drawElements(GCGLenum mode, GCGLsizei count, GCGLenum type, long long offset) -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.cpp
r286293 r287984 2384 2384 } 2385 2385 2386 #if HAVE(OPENGL_4) && ENABLE(WEBGL2)2387 void GraphicsContextGLOpenGL::primitiveRestartIndex(GCGLuint index)2388 {2389 if (!makeContextCurrent())2390 return;2391 2392 ::glPrimitiveRestartIndex(index);2393 }2394 #endif2395 2396 2386 void GraphicsContextGLOpenGL::bufferData(GCGLenum target, const void* data, GCGLenum usage, GCGLuint srcOffset, GCGLuint length) 2397 2387 { -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h
r286943 r287984 384 384 std::optional<PixelBuffer> readCompositedResultsForPainting(); 385 385 386 #if USE(OPENGL) && ENABLE(WEBGL2)387 void primitiveRestartIndex(GCGLuint);388 #endif389 390 391 386 void setContextVisibility(bool) final; 392 387
Note:
See TracChangeset
for help on using the changeset viewer.