Changeset 199000 in webkit
- Timestamp:
- Apr 4, 2016 3:21:35 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r198998 r199000 1 2016-04-04 Emanuele Aina <emanuele.aina@collabora.com> 2 3 Rely on PlatformLayer to choose the TextureMapperPlatformLayer impl 4 https://bugs.webkit.org/show_bug.cgi?id=155926 5 6 Reviewed by Žan Doberšek. 7 8 Use PlatformLayer to replace a bunch of subtly different #ifdef 9 scattered over the codebase to choose between TextureMapperPlatformLayer 10 and TextureMapperPlatformLayerProxyProvider. 11 12 * platform/graphics/GraphicsContext3DPrivate.h: 13 * platform/graphics/cairo/ImageBufferDataCairo.h: 14 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h: Use 15 PlatformLayer.h an inherit from PlatformLayer instead of choosing the 16 right implementation every time. 17 * platform/graphics/texmap/TextureMapperPlatformLayer.h: Add 18 TEXTURE_MAPPER guards to make it unconditionally usable. 19 * platform/graphics/texmap/TextureMapperPlatformLayerProxy.h: Add 20 COORDINATED_GRAPHICS_THREADED guards to make it unconditionally 21 usable. 22 1 23 2016-04-04 Frederic Wang <fwang@igalia.com> 2 24 -
trunk/Source/WebCore/platform/graphics/GraphicsContext3DPrivate.h
r197563 r199000 23 23 #include "GLContext.h" 24 24 #include "GraphicsContext3D.h" 25 26 #if USE(COORDINATED_GRAPHICS_THREADED) 27 #include "BitmapTextureGL.h" 25 #include "PlatformLayer.h" 26 #include "TextureMapperPlatformLayer.h" 28 27 #include "TextureMapperPlatformLayerProxy.h" 29 #elif USE(TEXTURE_MAPPER)30 #include "TextureMapperPlatformLayer.h"31 #endif32 28 33 29 namespace WebCore { 34 30 31 class BitmapTextureGL; 32 35 33 class GraphicsContext3DPrivate 36 #if USE(COORDINATED_GRAPHICS_THREADED) 37 : public TextureMapperPlatformLayerProxyProvider 38 #elif USE(TEXTURE_MAPPER) 39 : public TextureMapperPlatformLayer 34 #if USE(TEXTURE_MAPPER) 35 : public PlatformLayer 40 36 #endif 41 37 { -
trunk/Source/WebCore/platform/graphics/cairo/ImageBufferDataCairo.h
r198205 r199000 33 33 34 34 #if ENABLE(ACCELERATED_2D_CANVAS) 35 #include "PlatformLayer.h" 35 36 #include "TextureMapper.h" 36 #i f USE(COORDINATED_GRAPHICS_THREADED)37 #include "TextureMapperPlatformLayer.h" 37 38 #include "TextureMapperPlatformLayerProxy.h" 38 #else39 #include "TextureMapperPlatformLayer.h"40 #endif41 39 #endif 42 40 … … 47 45 class ImageBufferData 48 46 #if ENABLE(ACCELERATED_2D_CANVAS) 49 #if USE(COORDINATED_GRAPHICS_THREADED) 50 : public TextureMapperPlatformLayerProxyProvider 51 #else 52 : public TextureMapperPlatformLayer 53 #endif 47 : public PlatformLayer 54 48 #endif 55 49 { -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h
r197563 r199000 28 28 #include "MainThreadNotifier.h" 29 29 #include "MediaPlayerPrivate.h" 30 #include "PlatformLayer.h" 31 #include "TextureMapperPlatformLayer.h" 32 #include "TextureMapperPlatformLayerProxy.h" 30 33 #include <glib.h> 31 34 #include <wtf/Condition.h> 32 35 #include <wtf/Forward.h> 33 36 #include <wtf/RunLoop.h> 34 35 #if USE(TEXTURE_MAPPER_GL) && !USE(COORDINATED_GRAPHICS)36 #include "TextureMapperPlatformLayer.h"37 #endif38 #if USE(COORDINATED_GRAPHICS_THREADED)39 #include "TextureMapperPlatformLayerProxy.h"40 #endif41 37 42 38 typedef struct _GstMessage GstMessage; … … 55 51 56 52 class MediaPlayerPrivateGStreamerBase : public MediaPlayerPrivateInterface 57 #if USE(TEXTURE_MAPPER_GL) && !USE(COORDINATED_GRAPHICS) 58 , public TextureMapperPlatformLayer 59 #elif USE(COORDINATED_GRAPHICS_THREADED) 60 , public TextureMapperPlatformLayerProxyProvider 53 #if USE(COORDINATED_GRAPHICS_THREADED) || (USE(TEXTURE_MAPPER_GL) && !USE(COORDINATED_GRAPHICS)) 54 , public PlatformLayer 61 55 #endif 62 56 { -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h
r194103 r199000 20 20 #ifndef TextureMapperPlatformLayer_h 21 21 #define TextureMapperPlatformLayer_h 22 23 #if USE(TEXTURE_MAPPER) 22 24 23 25 #if USE(GRAPHICS_SURFACE) … … 66 68 }; 67 69 70 #endif // USE(TEXTURE_MAPPER) 71 68 72 #endif // TextureMapperPlatformLayer_h -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.h
r193836 r199000 26 26 #ifndef TextureMapperPlatformLayerProxy_h 27 27 #define TextureMapperPlatformLayerProxy_h 28 29 #if USE(COORDINATED_GRAPHICS_THREADED) 28 30 29 31 #include "GraphicsTypes3D.h" … … 104 106 } // namespace WebCore 105 107 108 #endif // USE(COORDINATED_GRAPHICS_THREADED) 109 106 110 #endif // TextureMapperPlatformLayerProxy_h
Note: See TracChangeset
for help on using the changeset viewer.