Changeset 122294 in webkit


Ignore:
Timestamp:
Jul 10, 2012 9:42:12 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Make full texture updates explicit
https://bugs.webkit.org/show_bug.cgi?id=90507

Patch by Brian Anderson <brianderson@chromium.org> on 2012-07-10
Reviewed by Adrienne Walker.

Covered by existing tests.

  • platform/graphics/chromium/ScrollbarLayerChromium.cpp:

(WebCore::ScrollbarLayerChromium::updatePart):

  • platform/graphics/chromium/TiledLayerChromium.cpp:

(WebCore::TiledLayerChromium::updateTiles):

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

(WebCore::CCTextureUpdater::appendFullUpdate):
(WebCore::CCTextureUpdater::hasMoreUpdates):
(WebCore::CCTextureUpdater::update):
(WebCore::CCTextureUpdater::clear):

  • platform/graphics/chromium/cc/CCTextureUpdater.h:

(CCTextureUpdater):

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r122293 r122294  
     12012-07-10  Brian Anderson  <brianderson@chromium.org>
     2
     3        [chromium] Make full texture updates explicit
     4        https://bugs.webkit.org/show_bug.cgi?id=90507
     5
     6        Reviewed by Adrienne Walker.
     7
     8        Covered by existing tests.
     9
     10        * platform/graphics/chromium/ScrollbarLayerChromium.cpp:
     11        (WebCore::ScrollbarLayerChromium::updatePart):
     12        * platform/graphics/chromium/TiledLayerChromium.cpp:
     13        (WebCore::TiledLayerChromium::updateTiles):
     14        * platform/graphics/chromium/cc/CCTextureUpdater.cpp:
     15        (WebCore::CCTextureUpdater::appendFullUpdate):
     16        (WebCore::CCTextureUpdater::hasMoreUpdates):
     17        (WebCore::CCTextureUpdater::update):
     18        (WebCore::CCTextureUpdater::clear):
     19        * platform/graphics/chromium/cc/CCTextureUpdater.h:
     20        (CCTextureUpdater):
     21
    1222012-07-10  Shinya Kawanaka  <shinyak@chromium.org>
    223
  • trunk/Source/WebCore/platform/graphics/chromium/ScrollbarLayerChromium.cpp

    r121870 r122294  
    248248
    249249    IntRect destRect(IntPoint(), rect.size());
    250     updater.appendUpdate(texture, rect, destRect);
     250    updater.appendFullUpdate(texture, rect, destRect);
    251251}
    252252
  • trunk/Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp

    r122185 r122294  
    511511                updater.appendPartialUpdate(tile->texture(), sourceRect, destRect);
    512512            else
    513                 updater.appendUpdate(tile->texture(), sourceRect, destRect);
     513                updater.appendFullUpdate(tile->texture(), sourceRect, destRect);
    514514        }
    515515    }
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCTextureUpdater.cpp

    r121574 r122294  
    6060}
    6161
    62 void CCTextureUpdater::appendUpdate(LayerTextureUpdater::Texture* texture, const IntRect& sourceRect, const IntRect& destRect)
     62void CCTextureUpdater::appendFullUpdate(LayerTextureUpdater::Texture* texture, const IntRect& sourceRect, const IntRect& destRect)
    6363{
    64     appendUpdate(texture, sourceRect, destRect, m_entries);
     64    appendUpdate(texture, sourceRect, destRect, m_fullEntries);
    6565}
    6666
     
    8181bool CCTextureUpdater::hasMoreUpdates() const
    8282{
    83     return m_entries.size() || m_partialEntries.size() || m_copyEntries.size();
     83    return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size();
    8484}
    8585
     
    8888    size_t index;
    8989
    90     if (m_entries.size() || m_partialEntries.size()) {
     90    if (m_fullEntries.size() || m_partialEntries.size()) {
    9191        if (uploader->isBusy())
    9292            return;
     
    9494        uploader->beginUploads();
    9595
    96         size_t maxIndex = min(m_entryIndex + count, m_entries.size());
     96        size_t maxIndex = min(m_entryIndex + count, m_fullEntries.size());
    9797        for (index = m_entryIndex; index < maxIndex; ++index) {
    98             UpdateEntry& entry = m_entries[index];
     98            UpdateEntry& entry = m_fullEntries[index];
    9999            uploader->uploadTexture(context, entry.texture, allocator, entry.sourceRect, entry.destRect);
    100100        }
    101101
    102         bool moreUploads = maxIndex < m_entries.size();
     102        bool moreUploads = maxIndex < m_fullEntries.size();
    103103
    104104        ASSERT(m_partialEntries.size() <= count);
     
    144144{
    145145    m_entryIndex = 0;
    146     m_entries.clear();
     146    m_fullEntries.clear();
    147147    m_partialEntries.clear();
    148148    m_copyEntries.clear();
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCTextureUpdater.h

    r119769 r122294  
    4242    ~CCTextureUpdater();
    4343
    44     void appendUpdate(LayerTextureUpdater::Texture*, const IntRect& sourceRect, const IntRect& destRect);
     44    void appendFullUpdate(LayerTextureUpdater::Texture*, const IntRect& sourceRect, const IntRect& destRect);
    4545    void appendPartialUpdate(LayerTextureUpdater::Texture*, const IntRect& sourceRect, const IntRect& destRect);
    4646    void appendCopy(unsigned sourceTexture, unsigned destTexture, const IntSize&);
     
    6969
    7070    size_t m_entryIndex;
    71     Vector<UpdateEntry> m_entries;
     71    Vector<UpdateEntry> m_fullEntries;
    7272    Vector<UpdateEntry> m_partialEntries;
    7373    Vector<CopyEntry> m_copyEntries;
Note: See TracChangeset for help on using the changeset viewer.