Changeset 220521 in webkit
- Timestamp:
- Aug 10, 2017 12:39:39 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220519 r220521 1 2017-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 1 19 2017-08-10 Zan Dobersek <zdobersek@igalia.com> 2 20 -
trunk/Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp
r220519 r220521 38 38 39 39 #if USE(TEXTURE_MAPPER_GL) 40 BitmapTexturePool::BitmapTexturePool(const TextureMapperContextAttributes& contextAttributes , RefPtr<GraphicsContext3D>&& context3D)40 BitmapTexturePool::BitmapTexturePool(const TextureMapperContextAttributes& contextAttributes) 41 41 : m_contextAttributes(contextAttributes) 42 , m_context3D(WTFMove(context3D))43 42 , m_releaseUnusedTexturesTimer(RunLoop::current(), this, &BitmapTexturePool::releaseUnusedTexturesTimerFired) 44 43 { -
trunk/Source/WebCore/platform/graphics/texmap/BitmapTexturePool.h
r220392 r220521 33 33 #include <wtf/RunLoop.h> 34 34 35 #if USE(TEXTURE_MAPPER_GL)36 #include "GraphicsContext3D.h"37 #endif38 39 35 namespace WebCore { 40 36 41 class GraphicsContext3D;42 37 class IntSize; 43 38 … … 47 42 public: 48 43 #if USE(TEXTURE_MAPPER_GL) 49 explicit BitmapTexturePool(const TextureMapperContextAttributes& , RefPtr<GraphicsContext3D>&&);44 explicit BitmapTexturePool(const TextureMapperContextAttributes&); 50 45 #endif 51 46 … … 71 66 #if USE(TEXTURE_MAPPER_GL) 72 67 TextureMapperContextAttributes m_contextAttributes; 73 RefPtr<GraphicsContext3D> m_context3D;74 68 #endif 75 69 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
r220519 r220521 173 173 m_data = new TextureMapperGLData(*m_context3D); 174 174 #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); 176 176 #endif 177 177 }
Note: See TracChangeset
for help on using the changeset viewer.