Changeset 220396 in webkit


Ignore:
Timestamp:
Aug 8, 2017 2:03:40 AM (7 years ago)
Author:
zandobersek@gmail.com
Message:

Unreviewed. Follow-up to r220392 that fixes build on configurations
that disable USE(GSTREAMER_GL).

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:

(WebCore::MediaPlayerPrivateGStreamerBase::pushTextureToCompositor):
When creating the BitmapTextureGL object, also provide an initialized
TextureMapperContextAttributes object.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220395 r220396  
     12017-08-08  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Unreviewed. Follow-up to r220392 that fixes build on configurations
     4        that disable USE(GSTREAMER_GL).
     5
     6        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
     7        (WebCore::MediaPlayerPrivateGStreamerBase::pushTextureToCompositor):
     8        When creating the BitmapTextureGL object, also provide an initialized
     9        TextureMapperContextAttributes object.
     10
    1112017-08-08  Zan Dobersek  <zdobersek@igalia.com>
    212
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp

    r220058 r220396  
    102102#include "BitmapTextureGL.h"
    103103#include "BitmapTexturePool.h"
     104#include "TextureMapperContextAttributes.h"
    104105#include "TextureMapperGL.h"
    105106#include "TextureMapperPlatformLayerBuffer.h"
     
    612613            m_context3D = GraphicsContext3D::create(GraphicsContext3DAttributes(), nullptr, GraphicsContext3D::RenderToCurrentGLContext);
    613614
    614         auto texture = BitmapTextureGL::create(*m_context3D);
     615        TextureMapperContextAttributes contextAttributes;
     616        contextAttributes.initialize();
     617
     618        auto texture = BitmapTextureGL::create(contextAttributes, *m_context3D);
    615619        texture->reset(size, GST_VIDEO_INFO_HAS_ALPHA(&videoInfo) ? BitmapTexture::SupportsAlpha : BitmapTexture::NoFlag);
    616620        buffer = std::make_unique<TextureMapperPlatformLayerBuffer>(WTFMove(texture));
Note: See TracChangeset for help on using the changeset viewer.