Changeset 122294 in webkit
- Timestamp:
- Jul 10, 2012 9:42:12 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r122293 r122294 1 2012-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 1 22 2012-07-10 Shinya Kawanaka <shinyak@chromium.org> 2 23 -
trunk/Source/WebCore/platform/graphics/chromium/ScrollbarLayerChromium.cpp
r121870 r122294 248 248 249 249 IntRect destRect(IntPoint(), rect.size()); 250 updater.append Update(texture, rect, destRect);250 updater.appendFullUpdate(texture, rect, destRect); 251 251 } 252 252 -
trunk/Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp
r122185 r122294 511 511 updater.appendPartialUpdate(tile->texture(), sourceRect, destRect); 512 512 else 513 updater.append Update(tile->texture(), sourceRect, destRect);513 updater.appendFullUpdate(tile->texture(), sourceRect, destRect); 514 514 } 515 515 } -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCTextureUpdater.cpp
r121574 r122294 60 60 } 61 61 62 void CCTextureUpdater::append Update(LayerTextureUpdater::Texture* texture, const IntRect& sourceRect, const IntRect& destRect)62 void CCTextureUpdater::appendFullUpdate(LayerTextureUpdater::Texture* texture, const IntRect& sourceRect, const IntRect& destRect) 63 63 { 64 appendUpdate(texture, sourceRect, destRect, m_ entries);64 appendUpdate(texture, sourceRect, destRect, m_fullEntries); 65 65 } 66 66 … … 81 81 bool CCTextureUpdater::hasMoreUpdates() const 82 82 { 83 return m_ entries.size() || m_partialEntries.size() || m_copyEntries.size();83 return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size(); 84 84 } 85 85 … … 88 88 size_t index; 89 89 90 if (m_ entries.size() || m_partialEntries.size()) {90 if (m_fullEntries.size() || m_partialEntries.size()) { 91 91 if (uploader->isBusy()) 92 92 return; … … 94 94 uploader->beginUploads(); 95 95 96 size_t maxIndex = min(m_entryIndex + count, m_ entries.size());96 size_t maxIndex = min(m_entryIndex + count, m_fullEntries.size()); 97 97 for (index = m_entryIndex; index < maxIndex; ++index) { 98 UpdateEntry& entry = m_ entries[index];98 UpdateEntry& entry = m_fullEntries[index]; 99 99 uploader->uploadTexture(context, entry.texture, allocator, entry.sourceRect, entry.destRect); 100 100 } 101 101 102 bool moreUploads = maxIndex < m_ entries.size();102 bool moreUploads = maxIndex < m_fullEntries.size(); 103 103 104 104 ASSERT(m_partialEntries.size() <= count); … … 144 144 { 145 145 m_entryIndex = 0; 146 m_ entries.clear();146 m_fullEntries.clear(); 147 147 m_partialEntries.clear(); 148 148 m_copyEntries.clear(); -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCTextureUpdater.h
r119769 r122294 42 42 ~CCTextureUpdater(); 43 43 44 void append Update(LayerTextureUpdater::Texture*, const IntRect& sourceRect, const IntRect& destRect);44 void appendFullUpdate(LayerTextureUpdater::Texture*, const IntRect& sourceRect, const IntRect& destRect); 45 45 void appendPartialUpdate(LayerTextureUpdater::Texture*, const IntRect& sourceRect, const IntRect& destRect); 46 46 void appendCopy(unsigned sourceTexture, unsigned destTexture, const IntSize&); … … 69 69 70 70 size_t m_entryIndex; 71 Vector<UpdateEntry> m_ entries;71 Vector<UpdateEntry> m_fullEntries; 72 72 Vector<UpdateEntry> m_partialEntries; 73 73 Vector<CopyEntry> m_copyEntries;
Note: See TracChangeset
for help on using the changeset viewer.