Changeset 279308 in webkit
- Timestamp:
- Jun 26, 2021, 5:48:56 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
Modules/webxr/WebXROpaqueFramebuffer.cpp (modified) (2 diffs)
-
platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm (modified) (2 diffs)
-
platform/graphics/opengl/GraphicsContextGLOpenGL.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r279306 r279308 1 2021-06-26 Dean Jackson <dino@apple.com> 2 3 Build fix for iOS Simulator. MTLSharedTexture is not available 4 on that configuration. 5 6 * Modules/webxr/WebXROpaqueFramebuffer.cpp: 7 (WebCore::WebXROpaqueFramebuffer::startFrame): 8 (WebCore::WebXROpaqueFramebuffer::endFrame): 9 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 10 * platform/graphics/opengl/GraphicsContextGLOpenGL.h: 11 1 12 2021-06-25 Alan Bujtas <zalan@apple.com> 2 13 -
trunk/Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp
r279298 r279308 138 138 // Tell the GraphicsContextGL to use the IOSurface as the backing store for m_opaqueTexture. 139 139 if (data.isShared) { 140 #if !PLATFORM(IOS_FAMILY_SIMULATOR) 140 141 m_ioSurfaceTextureHandle = gCGL->attachIOSurfaceToSharedTexture(textureTarget, data.surface.get()); 141 142 m_ioSurfaceTextureHandleIsShared = true; 143 #else 144 ASSERT_NOT_REACHED(); 145 #endif 142 146 } else { 143 147 auto size = data.surface->size(); … … 196 200 if (m_ioSurfaceTextureHandle) { 197 201 auto gCGL = static_cast<GraphicsContextGLOpenGL*>(&gl); 198 if (m_ioSurfaceTextureHandleIsShared) 202 if (m_ioSurfaceTextureHandleIsShared) { 203 #if !PLATFORM(IOS_FAMILY_SIMULATOR) 199 204 gCGL->detachIOSurfaceFromSharedTexture(m_ioSurfaceTextureHandle); 200 else 205 #else 206 ASSERT_NOT_REACHED(); 207 #endif 208 } else 201 209 gCGL->destroyPbufferAndDetachIOSurface(m_ioSurfaceTextureHandle); 202 210 m_ioSurfaceTextureHandle = nullptr; -
trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm
r279303 r279308 695 695 } 696 696 697 #if !PLATFORM(IOS_FAMILY_SIMULATOR) 697 698 void* GraphicsContextGLOpenGL::attachIOSurfaceToSharedTexture(GCGLenum target, IOSurface* surface) 698 699 { … … 740 741 EGL_DestroyImageKHR(display, handle); 741 742 } 743 #endif 742 744 743 745 bool GraphicsContextGLOpenGL::isGLES2Compliant() const -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h
r279298 r279308 537 537 void* createPbufferAndAttachIOSurface(GCGLenum target, PbufferAttachmentUsage, GCGLenum internalFormat, GCGLsizei width, GCGLsizei height, GCGLenum type, IOSurfaceRef, GCGLuint plane); 538 538 void destroyPbufferAndDetachIOSurface(void* handle); 539 #if !PLATFORM(IOS_FAMILY_SIMULATOR) 539 540 void* attachIOSurfaceToSharedTexture(GCGLenum target, IOSurface*); 540 541 void detachIOSurfaceFromSharedTexture(void* handle); 542 #endif 541 543 #endif 542 544
Note:
See TracChangeset
for help on using the changeset viewer.