Changeset 70262 in webkit


Ignore:
Timestamp:
Oct 21, 2010 1:31:17 PM (14 years ago)
Author:
noam.rosenthal@nokia.com
Message:

2010-10-21 No'am Rosenthal <noam.rosenthal@nokia.com>

Reviewed by Simon Hausmann.

[Qt] When doing rendering through tiling, it seems the tiles are not initialized before rendering
https://bugs.webkit.org/show_bug.cgi?id=48070

No new tests. Auto-tests for Tiled Backing Store should be added, see bug 48082

  • page/Frame.cpp: (WebCore::Frame::tiledBackingStoreBackgroundColor):
  • page/Frame.h:
  • platform/graphics/TiledBackingStoreClient.h:
  • platform/graphics/qt/TileQt.cpp: (WebCore::Tile::updateBackBuffer):
Location:
trunk/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70257 r70262  
     12010-10-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] When doing rendering through tiling, it seems the tiles are not initialized before rendering
     6        https://bugs.webkit.org/show_bug.cgi?id=48070
     7
     8        No new tests. Auto-tests for Tiled Backing Store should be added, see bug 48082
     9
     10        * page/Frame.cpp:
     11        (WebCore::Frame::tiledBackingStoreBackgroundColor):
     12        * page/Frame.h:
     13        * platform/graphics/TiledBackingStoreClient.h:
     14        * platform/graphics/qt/TileQt.cpp:
     15        (WebCore::Tile::updateBackBuffer):
     16
    1172010-10-21  Carlos Garcia Campos  <cgarcia@igalia.com>
    218
  • trunk/WebCore/page/Frame.cpp

    r69587 r70262  
    880880    return m_page->chrome()->client()->visibleRectForTiledBackingStore();
    881881}
     882
     883Color Frame::tiledBackingStoreBackgroundColor() const
     884{
     885    if (!m_view)
     886        return Color();
     887    return m_view->baseBackgroundColor();
     888}
    882889#endif
    883890
  • trunk/WebCore/page/Frame.h

    r69039 r70262  
    238238        virtual IntRect tiledBackingStoreContentsRect();
    239239        virtual IntRect tiledBackingStoreVisibleRect();
     240        virtual Color tiledBackingStoreBackgroundColor() const;
    240241
    241242        OwnPtr<TiledBackingStore> m_tiledBackingStore;
  • trunk/WebCore/platform/graphics/TiledBackingStoreClient.h

    r59611 r70262  
    3131    virtual IntRect tiledBackingStoreContentsRect() = 0;
    3232    virtual IntRect tiledBackingStoreVisibleRect() = 0;
     33    virtual Color tiledBackingStoreBackgroundColor() const = 0;
    3334};
    3435
  • trunk/WebCore/platform/graphics/qt/TileQt.cpp

    r55976 r70262  
    9898
    9999    if (!m_backBuffer) {
    100         if (!m_buffer)
     100        if (!m_buffer) {
    101101            m_backBuffer = new QPixmap(m_backingStore->m_tileSize.width(), m_backingStore->m_tileSize.height());
    102         else {
     102            m_backBuffer->fill(m_backingStore->m_client->tiledBackingStoreBackgroundColor());
     103        } else {
    103104            // Currently all buffers are updated synchronously at the same time so there is no real need
    104105            // to have separate back and front buffers. Just use the existing buffer.
Note: See TracChangeset for help on using the changeset viewer.