Changeset 183196 in webkit
- Timestamp:
- Apr 23, 2015 10:59:58 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r183195 r183196 1 2015-04-23 Simon Fraser <simon.fraser@apple.com> 2 3 Remove m_isPageTiledBackingLayer data member from GraphicsLayerCA, just use the layer type instead 4 https://bugs.webkit.org/show_bug.cgi?id=144108 5 6 Reviewed by Dean Jackson. 7 8 No need for the m_isPageTiledBackingLayer data member. We can just check the layer 9 type instead. 10 11 * platform/graphics/ca/GraphicsLayerCA.cpp: 12 (WebCore::GraphicsLayerCA::GraphicsLayerCA): 13 (WebCore::GraphicsLayerCA::initialize): 14 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter): 15 (WebCore::GraphicsLayerCA::updateContentsScale): 16 (WebCore::GraphicsLayerCA::getDebugBorderInfo): 17 (WebCore::GraphicsLayerCA::requiresTiledLayer): 18 * platform/graphics/ca/GraphicsLayerCA.h: 19 (WebCore::GraphicsLayerCA::isPageTiledBackingLayer): 20 1 21 2015-04-23 Brady Eidson <beidson@apple.com> 2 22 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r181832 r183196 353 353 : GraphicsLayer(layerType, client) 354 354 , m_contentsLayerPurpose(NoContentsLayer) 355 , m_isPageTiledBackingLayer(false)356 355 , m_needsFullRepaint(false) 357 356 , m_usingBackdropLayerType(false) … … 363 362 void GraphicsLayerCA::initialize(Type layerType) 364 363 { 365 if (layerType == Type::PageTiledBacking)366 m_isPageTiledBackingLayer = true;367 368 364 PlatformCALayer::LayerType platformLayerType; 369 365 switch (layerType) { … … 1313 1309 // The repaint counters are painted into the TileController tiles (which have no corresponding platform layer), 1314 1310 // so we don't want to overpaint the repaint counter when called with the TileController's own layer. 1315 if ( m_isPageTiledBackingLayer&& platformLayer)1311 if (isPageTiledBackingLayer() && platformLayer) 1316 1312 return false; 1317 1313 … … 3070 3066 float contentsScale = pageScaleFactor * deviceScaleFactor(); 3071 3067 3072 if ( m_isPageTiledBackingLayer&& tiledBacking()) {3068 if (isPageTiledBackingLayer() && tiledBacking()) { 3073 3069 float zoomedOutScale = m_client.zoomedOutPageScaleFactor() * deviceScaleFactor(); 3074 3070 tiledBacking()->setZoomedOutContentsScale(zoomedOutScale); … … 3085 3081 if (tiledBacking()) { 3086 3082 // Scale change may swap in a different set of tiles changing the custom child layers. 3087 if ( m_isPageTiledBackingLayer)3083 if (isPageTiledBackingLayer()) 3088 3084 m_uncommittedChanges |= ChildrenChanged; 3089 3085 // Tiled backing repaints automatically on scale change. … … 3128 3124 void GraphicsLayerCA::getDebugBorderInfo(Color& color, float& width) const 3129 3125 { 3130 if ( m_isPageTiledBackingLayer) {3126 if (isPageTiledBackingLayer()) { 3131 3127 color = Color(0, 0, 128, 128); // tile cache layer: dark blue 3132 3128 width = 0.5; … … 3206 3202 bool GraphicsLayerCA::requiresTiledLayer(float pageScaleFactor) const 3207 3203 { 3208 if (!m_drawsContent || m_isPageTiledBackingLayer)3204 if (!m_drawsContent || isPageTiledBackingLayer()) 3209 3205 return false; 3210 3206 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h
r180965 r183196 268 268 WEBCORE_EXPORT virtual void setReplicatedByLayer(GraphicsLayer*) override; 269 269 270 WEBCORE_EXPORT virtual bool canThrottleLayerFlush() const override; 271 270 272 WEBCORE_EXPORT virtual void getDebugBorderInfo(Color&, float& width) const override; 271 273 WEBCORE_EXPORT virtual void dumpAdditionalProperties(TextStream&, int indent, LayerTreeAsTextBehavior) const override; … … 284 286 285 287 bool recursiveVisibleRectChangeRequiresFlush(const TransformState&) const; 286 287 WEBCORE_EXPORT virtual bool canThrottleLayerFlush() const override;288 289 bool isPageTiledBackingLayer() const { return type() == Type::PageTiledBacking; } 288 290 289 291 // Used to track the path down the tree for replica layers. … … 492 494 493 495 ContentsLayerPurpose m_contentsLayerPurpose; 494 bool m_isPageTiledBackingLayer : 1;495 496 bool m_needsFullRepaint : 1; 496 497 bool m_usingBackdropLayerType : 1;
Note: See TracChangeset
for help on using the changeset viewer.