⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 279308 in webkit


Ignore:
Timestamp:
Jun 26, 2021, 5:48:56 PM (5 years ago)
Author:
dino@apple.com
Message:

Build fix for iOS Simulator. MTLSharedTexture is not available
on that configuration.

  • Modules/webxr/WebXROpaqueFramebuffer.cpp:

(WebCore::WebXROpaqueFramebuffer::startFrame):
(WebCore::WebXROpaqueFramebuffer::endFrame):

  • platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm:
  • platform/graphics/opengl/GraphicsContextGLOpenGL.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r279306 r279308  
     12021-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
    1122021-06-25  Alan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp

    r279298 r279308  
    138138    // Tell the GraphicsContextGL to use the IOSurface as the backing store for m_opaqueTexture.
    139139    if (data.isShared) {
     140#if !PLATFORM(IOS_FAMILY_SIMULATOR)
    140141        m_ioSurfaceTextureHandle = gCGL->attachIOSurfaceToSharedTexture(textureTarget, data.surface.get());
    141142        m_ioSurfaceTextureHandleIsShared = true;
     143#else
     144        ASSERT_NOT_REACHED();
     145#endif
    142146    } else {
    143147        auto size = data.surface->size();
    … …  
    196200    if (m_ioSurfaceTextureHandle) {
    197201        auto gCGL = static_cast<GraphicsContextGLOpenGL*>(&gl);
    198         if (m_ioSurfaceTextureHandleIsShared)
     202        if (m_ioSurfaceTextureHandleIsShared) {
     203#if !PLATFORM(IOS_FAMILY_SIMULATOR)
    199204            gCGL->detachIOSurfaceFromSharedTexture(m_ioSurfaceTextureHandle);
    200         else
     205#else
     206            ASSERT_NOT_REACHED();
     207#endif
     208        } else
    201209            gCGL->destroyPbufferAndDetachIOSurface(m_ioSurfaceTextureHandle);
    202210        m_ioSurfaceTextureHandle = nullptr;
  • trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm

    r279303 r279308  
    695695}
    696696
     697#if !PLATFORM(IOS_FAMILY_SIMULATOR)
    697698void* GraphicsContextGLOpenGL::attachIOSurfaceToSharedTexture(GCGLenum target, IOSurface* surface)
    698699{
    … …  
    740741    EGL_DestroyImageKHR(display, handle);
    741742}
     743#endif
    742744
    743745bool GraphicsContextGLOpenGL::isGLES2Compliant() const
  • trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h

    r279298 r279308  
    537537    void* createPbufferAndAttachIOSurface(GCGLenum target, PbufferAttachmentUsage, GCGLenum internalFormat, GCGLsizei width, GCGLsizei height, GCGLenum type, IOSurfaceRef, GCGLuint plane);
    538538    void destroyPbufferAndDetachIOSurface(void* handle);
     539#if !PLATFORM(IOS_FAMILY_SIMULATOR)
    539540    void* attachIOSurfaceToSharedTexture(GCGLenum target, IOSurface*);
    540541    void detachIOSurfaceFromSharedTexture(void* handle);
     542#endif
    541543#endif
    542544
Note: See TracChangeset for help on using the changeset viewer.