Changeset 209224 in webkit
- Timestamp:
- Dec 1, 2016 5:21:46 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r209221 r209224 1 2016-12-01 Simon Fraser <simon.fraser@apple.com> 2 3 Put an obvious debug border on layers with backdrop filters 4 https://bugs.webkit.org/show_bug.cgi?id=165291 5 6 Reviewed by Tim Horton. 7 8 Put a wide magenta border on layers with backdrop filters, to highlight their performance impact. 9 10 Change the "contents layer" color (used by WebGL, video etc) to blue. 11 12 Make the clipping layer border slightly narrower. 13 14 * platform/graphics/GraphicsLayer.cpp: 15 (WebCore::GraphicsLayer::getDebugBorderInfo): 16 * platform/graphics/ca/GraphicsLayerCA.cpp: 17 (WebCore::GraphicsLayerCA::setBackdropFilters): 18 1 19 2016-12-01 Brian Burg <bburg@apple.com> 2 20 -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp
r208927 r209224 438 438 void GraphicsLayer::getDebugBorderInfo(Color& color, float& width) const 439 439 { 440 width = 2; 441 442 if (needsBackdrop()) { 443 color = Color(255, 0, 255, 128); // has backdrop: magenta 444 width = 12; 445 return; 446 } 447 440 448 if (drawsContent()) { 441 449 if (m_usingTiledBacking) { 442 450 color = Color(255, 128, 0, 128); // tiled layer: orange 443 width = 2;444 451 return; 445 452 } 446 453 447 454 color = Color(0, 128, 32, 128); // normal layer: green 448 width = 2;449 455 return; 450 456 } 451 457 452 458 if (usesContentsLayer()) { 453 color = Color( 255, 150, 255, 200); // non-painting layer with contents: pink454 width = 2;459 color = Color(0, 64, 128, 150); // non-painting layer with contents: blue 460 width = 8; 455 461 return; 456 462 } … … 458 464 if (masksToBounds()) { 459 465 color = Color(128, 255, 255, 48); // masking layer: pale blue 460 width = 20;466 width = 16; 461 467 return; 462 468 } 463 469 464 470 color = Color(255, 255, 0, 192); // container: yellow 465 width = 2;466 471 } 467 472 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r208985 r209224 788 788 } 789 789 790 noteLayerPropertyChanged(BackdropFiltersChanged );790 noteLayerPropertyChanged(BackdropFiltersChanged | DebugIndicatorsChanged); 791 791 return canCompositeFilters; 792 792 }
Note: See TracChangeset
for help on using the changeset viewer.