⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 107282 in webkit


Ignore:
Timestamp:
Feb 9, 2012, 1:20:49 PM (15 years ago)
Author:
enne@google.com
Message:

[chromium] Correct potential double reserveTextures() in CCLayerTreeHost
https://bugs.webkit.org/show_bug.cgi?id=78258

Reviewed by James Robinson.

This isn't a problem currently, because scrollbar layers don't create
render surfaces. However, if this ever got used for other layers, we
could call reserve on them twice needlessly. It's also just bad form
to have an iterator doing the wrong thing.

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

(WebCore::CCLayerTreeHost::reserveTextures):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107279 r107282  
     12012-02-09  Adrienne Walker  <enne@google.com>
     2
     3        [chromium] Correct potential double reserveTextures() in CCLayerTreeHost
     4        https://bugs.webkit.org/show_bug.cgi?id=78258
     5
     6        Reviewed by James Robinson.
     7
     8        This isn't a problem currently, because scrollbar layers don't create
     9        render surfaces. However, if this ever got used for other layers, we
     10        could call reserve on them twice needlessly. It's also just bad form
     11        to have an iterator doing the wrong thing.
     12
     13        * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
     14        (WebCore::CCLayerTreeHost::reserveTextures):
     15
    1162012-02-09  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp

    r107243 r107282  
    448448    CCLayerIteratorType end = CCLayerIteratorType::end(&m_updateList);
    449449    for (CCLayerIteratorType it = CCLayerIteratorType::begin(&m_updateList); it != end; ++it) {
    450         if (it.representsTargetRenderSurface() || !it->alwaysReserveTextures())
     450        if (!it.representsItself() || !it->alwaysReserveTextures())
    451451            continue;
    452452        it->reserveTextures();
Note: See TracChangeset for help on using the changeset viewer.