Changeset 172885 in webkit


Ignore:
Timestamp:
Aug 23, 2014, 12:11:00 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[TexMap] Only notify of a required flush on the first layer property change
https://bugs.webkit.org/show_bug.cgi?id=136104

Reviewed by Martin Robinson.

The GraphicsLayer's client should only be notified that a flush is required
when the first change of one of the layer's properties is initiated, instead
of requesting the flush on every such change.

  • platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:

(WebCore::GraphicsLayerTextureMapper::notifyChange):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r172884 r172885  
     12014-08-23  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [TexMap] Only notify of a required flush on the first layer property change
     4        https://bugs.webkit.org/show_bug.cgi?id=136104
     5
     6        Reviewed by Martin Robinson.
     7
     8        The GraphicsLayer's client should only be notified that a flush is required
     9        when the first change of one of the layer's properties is initiated, instead
     10        of requesting the flush on every such change.
     11
     12        * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
     13        (WebCore::GraphicsLayerTextureMapper::notifyChange):
     14
    1152014-08-22  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp

    r172836 r172885  
    6060void GraphicsLayerTextureMapper::notifyChange(ChangeMask changeMask)
    6161{
     62    bool flushRequired = m_changeMask == NoChanges;
    6263    m_changeMask |= changeMask;
    63     client().notifyFlushRequired(this);
     64
     65    if (flushRequired)
     66        client().notifyFlushRequired(this);
    6467}
    6568
Note: See TracChangeset for help on using the changeset viewer.