Changeset 220521 in webkit


Ignore:
Timestamp:
Aug 10, 2017 12:39:39 AM (7 years ago)
Author:
zandobersek@gmail.com
Message:

[TexMap] Remove GraphicsContext3D usage from BitmapTexturePool
https://bugs.webkit.org/show_bug.cgi?id=175319

Reviewed by Carlos Garcia Campos.

Drop the GraphicsContext3D reference in BitmapTexturePool now
that the BitmapTextureGL doesn't require it anymore.

No new tests -- no change in behavior.

  • platform/graphics/texmap/BitmapTexturePool.cpp:

(WebCore::BitmapTexturePool::BitmapTexturePool):

  • platform/graphics/texmap/BitmapTexturePool.h:
  • platform/graphics/texmap/TextureMapperGL.cpp:

(WebCore::TextureMapperGL::TextureMapperGL):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220519 r220521  
     12017-08-10  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [TexMap] Remove GraphicsContext3D usage from BitmapTexturePool
     4        https://bugs.webkit.org/show_bug.cgi?id=175319
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Drop the GraphicsContext3D reference in BitmapTexturePool now
     9        that the BitmapTextureGL doesn't require it anymore.
     10
     11        No new tests -- no change in behavior.
     12
     13        * platform/graphics/texmap/BitmapTexturePool.cpp:
     14        (WebCore::BitmapTexturePool::BitmapTexturePool):
     15        * platform/graphics/texmap/BitmapTexturePool.h:
     16        * platform/graphics/texmap/TextureMapperGL.cpp:
     17        (WebCore::TextureMapperGL::TextureMapperGL):
     18
    1192017-08-10  Zan Dobersek  <zdobersek@igalia.com>
    220
  • trunk/Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp

    r220519 r220521  
    3838
    3939#if USE(TEXTURE_MAPPER_GL)
    40 BitmapTexturePool::BitmapTexturePool(const TextureMapperContextAttributes& contextAttributes, RefPtr<GraphicsContext3D>&& context3D)
     40BitmapTexturePool::BitmapTexturePool(const TextureMapperContextAttributes& contextAttributes)
    4141    : m_contextAttributes(contextAttributes)
    42     , m_context3D(WTFMove(context3D))
    4342    , m_releaseUnusedTexturesTimer(RunLoop::current(), this, &BitmapTexturePool::releaseUnusedTexturesTimerFired)
    4443{
  • trunk/Source/WebCore/platform/graphics/texmap/BitmapTexturePool.h

    r220392 r220521  
    3333#include <wtf/RunLoop.h>
    3434
    35 #if USE(TEXTURE_MAPPER_GL)
    36 #include "GraphicsContext3D.h"
    37 #endif
    38 
    3935namespace WebCore {
    4036
    41 class GraphicsContext3D;
    4237class IntSize;
    4338
     
    4742public:
    4843#if USE(TEXTURE_MAPPER_GL)
    49     explicit BitmapTexturePool(const TextureMapperContextAttributes&, RefPtr<GraphicsContext3D>&&);
     44    explicit BitmapTexturePool(const TextureMapperContextAttributes&);
    5045#endif
    5146
     
    7166#if USE(TEXTURE_MAPPER_GL)
    7267    TextureMapperContextAttributes m_contextAttributes;
    73     RefPtr<GraphicsContext3D> m_context3D;
    7468#endif
    7569
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp

    r220519 r220521  
    173173    m_data = new TextureMapperGLData(*m_context3D);
    174174#if USE(TEXTURE_MAPPER_GL)
    175     m_texturePool = std::make_unique<BitmapTexturePool>(m_contextAttributes, m_context3D.copyRef());
     175    m_texturePool = std::make_unique<BitmapTexturePool>(m_contextAttributes);
    176176#endif
    177177}
Note: See TracChangeset for help on using the changeset viewer.