Changeset 82199 in webkit


Ignore:
Timestamp:
Mar 28, 2011 11:32:36 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-28 Kwang Yul Seo <skyul@company100.net>

Reviewed by Benjamin Poulain.

[Qt] Change TextureMapperVideoLayer to TextureMapperMediaLayer
https://bugs.webkit.org/show_bug.cgi?id=57142

TextureMapperMediaLayer is a better name here because both video and plugins use this layer.
Remove ENABLE(VIDEO) guard.

  • platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  • platform/graphics/qt/MediaPlayerPrivateQt.h:
  • platform/graphics/texmap/GraphicsLayerTextureMapper.cpp: (WebCore::GraphicsLayerTextureMapper::setContentsToMedia):
  • platform/graphics/texmap/TextureMapperNode.h:
  • platform/graphics/texmap/TextureMapperPlatformLayer.h: (WebCore::TextureMapperMediaLayer::layerType):
Location:
trunk/Source/WebCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r82198 r82199  
     12011-03-28  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Reviewed by Benjamin Poulain.
     4
     5        [Qt] Change TextureMapperVideoLayer to TextureMapperMediaLayer
     6        https://bugs.webkit.org/show_bug.cgi?id=57142
     7
     8        TextureMapperMediaLayer is a better name here because both video and plugins use this layer.
     9        Remove ENABLE(VIDEO) guard.
     10
     11        * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
     12        * platform/graphics/qt/MediaPlayerPrivateQt.h:
     13        * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
     14        (WebCore::GraphicsLayerTextureMapper::setContentsToMedia):
     15        * platform/graphics/texmap/TextureMapperNode.h:
     16        * platform/graphics/texmap/TextureMapperPlatformLayer.h:
     17        (WebCore::TextureMapperMediaLayer::layerType):
     18
    1192011-03-28  Thomas Klausner  <tk@giga.or.at>
    220
  • trunk/Source/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp

    r82134 r82199  
    598598#if USE(ACCELERATED_COMPOSITING) && USE(TEXTURE_MAPPER)
    599599
    600 class TextureMapperVideoLayerQt : public virtual TextureMapperVideoLayer {
     600class TextureMapperVideoLayerQt : public virtual TextureMapperMediaLayer {
    601601public:
    602602    TextureMapperVideoLayerQt(QGraphicsVideoItem* videoItem)
  • trunk/Source/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.h

    r81114 r82199  
    3434namespace WebCore {
    3535
    36 class TextureMapperVideoLayer;
     36class TextureMapperMediaLayer;
    3737
    3838class MediaPlayerPrivateQt : public QObject, public MediaPlayerPrivateInterface {
     
    140140    QGraphicsScene* m_videoScene;
    141141#if USE(ACCELERATED_COMPOSITING) && USE(TEXTURE_MAPPER)
    142     OwnPtr<TextureMapperVideoLayer> m_platformLayer;
     142    OwnPtr<TextureMapperMediaLayer> m_platformLayer;
    143143#endif
    144144
  • trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp

    r82044 r82199  
    337337    m_pendingContent.contentType = media ? TextureMapperNode::MediaContentType : TextureMapperNode::HTMLContentType;
    338338    if (media)
    339         m_pendingContent.media = static_cast<TextureMapperVideoLayer*>(media);
     339        m_pendingContent.media = static_cast<TextureMapperMediaLayer*>(media);
    340340    else
    341341        m_pendingContent.media = 0;
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperNode.h

    r81230 r82199  
    9595        ContentType contentType;
    9696        RefPtr<Image> image;
    97         TextureMapperVideoLayer* media;
     97        TextureMapperMediaLayer* media;
    9898
    9999        ContentData()
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h

    r71538 r82199  
    4444    enum Type {
    4545        ContentLayer,
    46         VideoLayer
     46        MediaLayer
    4747    };
    4848
     
    6767};
    6868
    69 #if ENABLE(VIDEO)
    70 class TextureMapperVideoLayer : public TextureMapperPlatformLayer {
     69class TextureMapperMediaLayer : public TextureMapperPlatformLayer {
    7170public:
    7271    virtual void paint(GraphicsContext*) = 0;
    73     virtual Type layerType() const { return VideoLayer; }
     72    virtual Type layerType() const { return MediaLayer; }
    7473};
    75 #endif
    7674
    7775}
Note: See TracChangeset for help on using the changeset viewer.