Changeset 190628 in webkit


Ignore:
Timestamp:
Oct 6, 2015 11:20:29 AM (9 years ago)
Author:
timothy_horton@apple.com
Message:

Tile map shows a green rect when threaded scrolling is disabled
https://bugs.webkit.org/show_bug.cgi?id=149716

Reviewed by Darin Adler.

Green is supposed to indicate that we're using the fast path; if threaded
scrolling is disabled, we're definitely not doing that.

  • platform/graphics/TiledBacking.h:
  • platform/graphics/ca/TileController.cpp:

(WebCore::TileController::TileController):

  • platform/graphics/ca/TileCoverageMap.cpp:

(WebCore::TileCoverageMap::update):
Default to the "we have no ScrollingCoordinator" purple indication;
if a ScrollingCoordinator comes along it will setScrollingModeIndication
and change it from this default.

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r190627 r190628  
     12015-10-06  Tim Horton  <timothy_horton@apple.com>
     2
     3        Tile map shows a green rect when threaded scrolling is disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=149716
     5
     6        Reviewed by Darin Adler.
     7
     8        Green is supposed to indicate that we're using the fast path; if threaded
     9        scrolling is disabled, we're definitely not doing that.
     10
     11        * platform/graphics/TiledBacking.h:
     12        * platform/graphics/ca/TileController.cpp:
     13        (WebCore::TileController::TileController):
     14        * platform/graphics/ca/TileCoverageMap.cpp:
     15        (WebCore::TileCoverageMap::update):
     16        Default to the "we have no ScrollingCoordinator" purple indication;
     17        if a ScrollingCoordinator comes along it will setScrollingModeIndication
     18        and change it from this default.
     19
    1202015-10-06  Zalan Bujtas  <zalan@apple.com>
    221
  • trunk/Source/WebCore/platform/graphics/TiledBacking.h

    r185036 r190628  
    3636
    3737enum ScrollingModeIndication {
     38    SynchronousScrollingBecauseOfLackOfScrollingCoordinatorIndication,
    3839    SynchronousScrollingBecauseOfStyleIndication,
    3940    SynchronousScrollingBecauseOfEventHandlersIndication,
  • trunk/Source/WebCore/platform/graphics/ca/TileController.cpp

    r188324 r190628  
    7171    , m_hasTilesWithTemporaryScaleFactor(false)
    7272    , m_tileDebugBorderWidth(0)
    73     , m_indicatorMode(AsyncScrollingIndication)
     73    , m_indicatorMode(SynchronousScrollingBecauseOfLackOfScrollingCoordinatorIndication)
    7474    , m_topContentInset(0)
    7575{
  • trunk/Source/WebCore/platform/graphics/ca/TileCoverageMap.cpp

    r183354 r190628  
    102102    Color visibleRectIndicatorColor;
    103103    switch (m_controller.indicatorMode()) {
     104    case SynchronousScrollingBecauseOfLackOfScrollingCoordinatorIndication:
     105        visibleRectIndicatorColor = Color(200, 80, 255);
     106        break;
    104107    case SynchronousScrollingBecauseOfStyleIndication:
    105108        visibleRectIndicatorColor = Color(255, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.