Changeset 112439 in webkit


Ignore:
Timestamp:
Mar 28, 2012 2:18:20 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Add tracing events around CCLayerTreeHostImpl visibility.
https://bugs.webkit.org/show_bug.cgi?id=82501

Patch by Michal Mocny <mmocny@google.com> on 2012-03-28
Reviewed by James Robinson.

  • platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:

(WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
(WebCore::CCLayerTreeHostImpl::setVisible):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112438 r112439  
     12012-03-28  Michal Mocny  <mmocny@google.com>
     2
     3        [chromium] Add tracing events around CCLayerTreeHostImpl visibility.
     4        https://bugs.webkit.org/show_bug.cgi?id=82501
     5
     6        Reviewed by James Robinson.
     7
     8        * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
     9        (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
     10        (WebCore::CCLayerTreeHostImpl::setVisible):
     11
    1122012-03-28  Florin Malita  <fmalita@google.com>
    213
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp

    r112127 r112439  
    4545namespace {
    4646const double lowFrequencyAnimationInterval = 1;
     47
     48void didVisibilityChange(WebCore::CCLayerTreeHostImpl* id, bool visible)
     49{
     50    if (visible) {
     51        TRACE_EVENT_START1("webkit", "CCLayerTreeHostImpl::setVisible", id, "CCLayerTreeHostImpl", id);
     52        return;
     53    }
     54
     55    TRACE_EVENT_FINISH0("webkit", "CCLayerTreeHostImpl::setVisible", id);
     56}
     57
    4758} // namespace
    4859
     
    107118{
    108119    ASSERT(CCProxy::isImplThread());
     120    didVisibilityChange(this, m_visible);
    109121}
    110122
     
    475487        return;
    476488    m_visible = visible;
     489    didVisibilityChange(this, m_visible);
    477490
    478491    if (!m_layerRenderer)
Note: See TracChangeset for help on using the changeset viewer.