Changeset 220400 in webkit
- Timestamp:
- Aug 8, 2017 6:05:22 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220399 r220400 1 2017-08-08 Zan Dobersek <zdobersek@igalia.com> 2 3 [TexMap] Drop GC3D* type usage from TextureMapperPlatformLayer{Buffer,Proxy} 4 https://bugs.webkit.org/show_bug.cgi?id=175314 5 6 Reviewed by Carlos Garcia Campos. 7 8 Switch to using OpenGL types in the TextureMapperPlatformLayerBuffer and 9 TextureMapperPlatformLayerProxy classes, instead of the equivalent GC3D* 10 types provided in the GraphicsTypes3D.h header. 11 12 No new tests -- no change in behavior. 13 14 * platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp: 15 (WebCore::TextureMapperPlatformLayerBuffer::TextureMapperPlatformLayerBuffer): 16 (WebCore::TextureMapperPlatformLayerBuffer::canReuseWithoutReset): 17 * platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h: 18 * platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp: 19 (WebCore::TextureMapperPlatformLayerProxy::getAvailableBuffer): 20 * platform/graphics/texmap/TextureMapperPlatformLayerProxy.h: 21 1 22 2017-08-08 Zan Dobersek <zdobersek@igalia.com> 2 23 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
r218170 r220400 39 39 } 40 40 41 TextureMapperPlatformLayerBuffer::TextureMapperPlatformLayerBuffer(GLuint textureID, const IntSize& size, TextureMapperGL::Flags flags, G C3Dint internalFormat)41 TextureMapperPlatformLayerBuffer::TextureMapperPlatformLayerBuffer(GLuint textureID, const IntSize& size, TextureMapperGL::Flags flags, GLint internalFormat) 42 42 : m_textureID(textureID) 43 43 , m_size(size) … … 48 48 } 49 49 50 bool TextureMapperPlatformLayerBuffer::canReuseWithoutReset(const IntSize& size, G C3Dint internalFormat)50 bool TextureMapperPlatformLayerBuffer::canReuseWithoutReset(const IntSize& size, GLint internalFormat) 51 51 { 52 return m_texture && (m_texture->size() == size) && (static_cast<BitmapTextureGL*>(m_texture.get())->internalFormat() == internalFormat || internalFormat == G raphicsContext3D::DONT_CARE);52 return m_texture && (m_texture->size() == size) && (static_cast<BitmapTextureGL*>(m_texture.get())->internalFormat() == internalFormat || internalFormat == GL_DONT_CARE); 53 53 } 54 54 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h
r218170 r220400 27 27 28 28 #include "BitmapTextureGL.h" 29 #include " GraphicsTypes3D.h"29 #include "TextureMapperGLHeaders.h" 30 30 #include "TextureMapperPlatformLayer.h" 31 31 #include <wtf/CurrentTime.h> … … 40 40 public: 41 41 TextureMapperPlatformLayerBuffer(RefPtr<BitmapTexture>&&, TextureMapperGL::Flags = 0); 42 TextureMapperPlatformLayerBuffer(GLuint textureID, const IntSize&, TextureMapperGL::Flags, G C3Dint internalFormat);42 TextureMapperPlatformLayerBuffer(GLuint textureID, const IntSize&, TextureMapperGL::Flags, GLint internalFormat); 43 43 44 44 virtual ~TextureMapperPlatformLayerBuffer() = default; … … 46 46 void paintToTextureMapper(TextureMapper&, const FloatRect&, const TransformationMatrix& modelViewMatrix = TransformationMatrix(), float opacity = 1.0) final; 47 47 48 bool canReuseWithoutReset(const IntSize&, G C3Dint internalFormat);48 bool canReuseWithoutReset(const IntSize&, GLint internalFormat); 49 49 BitmapTextureGL& textureGL() { return static_cast<BitmapTextureGL&>(*m_texture); } 50 50 … … 73 73 GLuint m_textureID; 74 74 IntSize m_size; 75 G C3Dint m_internalFormat;75 GLint m_internalFormat; 76 76 TextureMapperGL::Flags m_extraFlags; 77 77 bool m_hasManagedTexture; -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp
r218170 r220400 118 118 } 119 119 120 std::unique_ptr<TextureMapperPlatformLayerBuffer> TextureMapperPlatformLayerProxy::getAvailableBuffer(const IntSize& size, G C3Dint internalFormat)120 std::unique_ptr<TextureMapperPlatformLayerBuffer> TextureMapperPlatformLayerProxy::getAvailableBuffer(const IntSize& size, GLint internalFormat) 121 121 { 122 122 ASSERT(m_lock.isHeld()); -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.h
r220397 r220400 29 29 #if USE(COORDINATED_GRAPHICS_THREADED) 30 30 31 #include " GraphicsTypes3D.h"31 #include "TextureMapperGLHeaders.h" 32 32 #include <wtf/Function.h> 33 33 #include <wtf/Lock.h> … … 63 63 // aquire / release the lock explicitly to use below methods. 64 64 Lock& lock() { return m_lock; } 65 std::unique_ptr<TextureMapperPlatformLayerBuffer> getAvailableBuffer(const IntSize&, G C3Dint internalFormat);65 std::unique_ptr<TextureMapperPlatformLayerBuffer> getAvailableBuffer(const IntSize&, GLint internalFormat); 66 66 void pushNextBuffer(std::unique_ptr<TextureMapperPlatformLayerBuffer>); 67 67 bool isActive();
Note: See TracChangeset
for help on using the changeset viewer.