Changeset 141067 in webkit


Ignore:
Timestamp:
Jan 28, 2013 11:48:48 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Texmap] Refactor code related to debug border and repaint count.
https://bugs.webkit.org/show_bug.cgi?id=105787

Patch by Huang Dongsung <luxtella@company100.net> on 2013-01-28
Reviewed by Noam Rosenthal.

It is a follow-up patch not to change layout test results.

The previous patch sets GraphicsLayer::m_usingTiledLayer to true when using a
backing store. When the variable is true, dumpLayer() adds (usingTiledLayer 1),
but most of ports don't set m_usingTiledLayer to true. So we don't use
m_usingTiledLayer to match the test results of other ports.

After this patch, Texture Mapper draws debug visuals for a tiled backing
with different color from safari.

No new tests. Debug feature, not covered in tests.

  • platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:

(WebCore::GraphicsLayerTextureMapper::updateDebugBorderAndRepaintCountIfNeeded):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141066 r141067  
     12013-01-28  Huang Dongsung  <luxtella@company100.net>
     2
     3        [Texmap] Refactor code related to debug border and repaint count.
     4        https://bugs.webkit.org/show_bug.cgi?id=105787
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        It is a follow-up patch not to change layout test results.
     9
     10        The previous patch sets GraphicsLayer::m_usingTiledLayer to true when using a
     11        backing store. When the variable is true, dumpLayer() adds (usingTiledLayer 1),
     12        but most of ports don't set m_usingTiledLayer to true. So we don't use
     13        m_usingTiledLayer to match the test results of other ports.
     14
     15        After this patch, Texture Mapper draws debug visuals for a tiled backing
     16        with different color from safari.
     17
     18        No new tests. Debug feature, not covered in tests.
     19
     20        * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
     21        (WebCore::GraphicsLayerTextureMapper::updateDebugBorderAndRepaintCountIfNeeded):
     22
    1232013-01-28  Elliott Sprehn  <esprehn@chromium.org>
    224
  • trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp

    r140821 r141067  
    414414        return;
    415415
    416     m_usingTiledLayer = shouldHaveBackingStore();
    417     updateDebugIndicators();
     416    if (isShowingDebugBorder())
     417        updateDebugIndicators();
    418418
    419419    // When this has its own backing store (e.g. Qt WK1), update the repaint count before calling TextureMapperLayer::flushCompositingStateForThisLayerOnly().
Note: See TracChangeset for help on using the changeset viewer.