Changeset 152132 in webkit


Ignore:
Timestamp:
Jun 27, 2013 3:40:32 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Unnecessary root layer commits occur during html5 video playback
https://bugs.webkit.org/show_bug.cgi?id=118147

Patch by Andrew Lo <anlo@blackberry.com> on 2013-06-27
Reviewed by Rob Buis.
Internally reviewed by Arvid Nilsson, John Griggs.

Only request layer commits when layer properties change in
GraphicsLayerBlackBerry::updateContentsRect and
GraphicsLayerBlackBerry::setContentsToMedia.
JIRA112749.

  • platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp:

(WebCore::GraphicsLayerBlackBerry::setContentsToMedia):
(WebCore::GraphicsLayerBlackBerry::updateContentsRect):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152122 r152132  
     12013-06-27  Andrew Lo  <anlo@blackberry.com>
     2
     3        [BlackBerry] Unnecessary root layer commits occur during html5 video playback
     4        https://bugs.webkit.org/show_bug.cgi?id=118147
     5
     6        Reviewed by Rob Buis.
     7        Internally reviewed by Arvid Nilsson, John Griggs.
     8
     9        Only request layer commits when layer properties change in
     10        GraphicsLayerBlackBerry::updateContentsRect and
     11        GraphicsLayerBlackBerry::setContentsToMedia.
     12        JIRA112749.
     13
     14        * platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp:
     15        (WebCore::GraphicsLayerBlackBerry::setContentsToMedia):
     16        (WebCore::GraphicsLayerBlackBerry::updateContentsRect):
     17
    1182013-06-27  Bem Jones-Bey  <bjonesbe@adobe.com>
    219
  • trunk/Source/WebCore/platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp

    r149824 r152132  
    570570            childrenChanged = true;
    571571        }
    572         layer->setOwner(this);
    573         layer->setNeedsDisplay();
     572
     573        if (layer->owner() != this) {
     574            layer->setOwner(this);
     575            layer->setNeedsDisplay();
     576        }
    574577        updateContentsRect();
    575578    } else {
     
    855858        return;
    856859
    857     m_contentsLayer->setPosition(m_contentsRect.location());
    858     m_contentsLayer->setBounds(m_contentsRect.size());
     860    if (m_contentsLayer->position() != m_contentsRect.location())
     861        m_contentsLayer->setPosition(m_contentsRect.location());
     862
     863    if (m_contentsLayer->bounds() != m_contentsRect.size())
     864        m_contentsLayer->setBounds(m_contentsRect.size());
    859865}
    860866
Note: See TracChangeset for help on using the changeset viewer.