Changeset 95348 in webkit
- Timestamp:
- Sep 16, 2011 6:14:47 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r95347 r95348 1 2011-09-16 Shawn Singh <shawnsingh@chromium.org> 2 3 Re-named isRootLayer to isNonCompositedContent because 4 that is what the flag actually means. 5 https://bugs.webkit.org/show_bug.cgi?id=68214 6 7 Reviewed by James Robinson. 8 9 Code cleanup towards unit testing. 10 11 * platform/graphics/chromium/LayerChromium.cpp: 12 (WebCore::LayerChromium::LayerChromium): 13 (WebCore::LayerChromium::pushPropertiesTo): 14 * platform/graphics/chromium/LayerChromium.h: 15 (WebCore::LayerChromium::setIsNonCompositedContent): 16 (WebCore::LayerChromium::isNonCompositedContent): 17 * platform/graphics/chromium/NonCompositedContentHost.cpp: 18 (WebCore::NonCompositedContentHost::NonCompositedContentHost): 19 * platform/graphics/chromium/TiledLayerChromium.cpp: 20 (WebCore::TiledLayerChromium::setLayerTreeHost): 21 * platform/graphics/chromium/cc/CCLayerImpl.cpp: 22 (WebCore::CCLayerImpl::CCLayerImpl): 23 * platform/graphics/chromium/cc/CCLayerImpl.h: 24 (WebCore::CCLayerImpl::setIsNonCompositedContent): 25 (WebCore::CCLayerImpl::isNonCompositedContent): 26 * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp: 27 (WebCore::CCTiledLayerImpl::draw): 28 1 29 2011-09-16 Simon Fraser <simon.fraser@apple.com> 2 30 -
trunk/Source/WebCore/platform/graphics/chromium/LayerChromium.cpp
r95341 r95348 76 76 , m_doubleSided(true) 77 77 , m_usesLayerScissor(false) 78 , m_is RootLayer(false)78 , m_isNonCompositedContent(false) 79 79 , m_replicaLayer(0) 80 80 , m_drawOpacity(0) … … 305 305 layer->setDoubleSided(m_doubleSided); 306 306 layer->setDrawsContent(drawsContent()); 307 layer->setIs RootLayer(m_isRootLayer);307 layer->setIsNonCompositedContent(m_isNonCompositedContent); 308 308 layer->setMasksToBounds(m_masksToBounds); 309 309 layer->setName(m_name); -
trunk/Source/WebCore/platform/graphics/chromium/LayerChromium.h
r95344 r95348 158 158 bool usesLayerScissor() const { return m_usesLayerScissor; } 159 159 160 void setIs RootLayer(bool isRootLayer) { m_isRootLayer = isRootLayer; }161 bool is RootLayer() const { return m_isRootLayer; }160 void setIsNonCompositedContent(bool isNonCompositedContent) { m_isNonCompositedContent = isNonCompositedContent; } 161 bool isNonCompositedContent() const { return m_isNonCompositedContent; } 162 162 163 163 virtual void setLayerTreeHost(CCLayerTreeHost*); … … 275 275 bool m_doubleSided; 276 276 bool m_usesLayerScissor; 277 bool m_is RootLayer;277 bool m_isNonCompositedContent; 278 278 279 279 TransformationMatrix m_transform; -
trunk/Source/WebCore/platform/graphics/chromium/NonCompositedContentHost.cpp
r95152 r95348 43 43 #endif 44 44 m_graphicsLayer->setDrawsContent(true); 45 m_graphicsLayer->platformLayer()->setIs RootLayer(true);45 m_graphicsLayer->platformLayer()->setIsNonCompositedContent(true); 46 46 } 47 47 -
trunk/Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp
r95148 r95348 149 149 m_tiler = CCLayerTilingData::create( 150 150 IntSize(defaultTileSize, defaultTileSize), 151 is RootLayer() ? CCLayerTilingData::NoBorderTexels : CCLayerTilingData::HasBorderTexels);151 isNonCompositedContent() ? CCLayerTilingData::NoBorderTexels : CCLayerTilingData::HasBorderTexels); 152 152 } 153 153 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerImpl.cpp
r95341 r95348 48 48 , m_preserves3D(false) 49 49 , m_usesLayerScissor(false) 50 , m_is RootLayer(false)50 , m_isNonCompositedContent(false) 51 51 , m_drawsContent(false) 52 52 , m_targetRenderSurface(0) -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerImpl.h
r95135 r95348 105 105 bool usesLayerScissor() const { return m_usesLayerScissor; } 106 106 107 void setIs RootLayer(bool isRootLayer) { m_isRootLayer = isRootLayer; }108 bool is RootLayer() const { return m_isRootLayer; }107 void setIsNonCompositedContent(bool isNonCompositedContent) { m_isNonCompositedContent = isNonCompositedContent; } 108 bool isNonCompositedContent() const { return m_isNonCompositedContent; } 109 109 110 110 void setSublayerTransform(const TransformationMatrix& sublayerTransform) { m_sublayerTransform = sublayerTransform; } … … 204 204 TransformationMatrix m_transform; 205 205 bool m_usesLayerScissor; 206 bool m_is RootLayer;206 bool m_isNonCompositedContent; 207 207 208 208 bool m_drawsContent; -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp
r95341 r95348 121 121 122 122 GraphicsContext3D* context = layerRenderer->context(); 123 if (is RootLayer()) {123 if (isNonCompositedContent()) { 124 124 context->colorMask(true, true, true, false); 125 125 GLC(context, context->disable(GraphicsContext3D::BLEND)); … … 149 149 } 150 150 151 if (is RootLayer()) {151 if (isNonCompositedContent()) { 152 152 context->colorMask(true, true, true, true); 153 153 GLC(context, context->enable(GraphicsContext3D::BLEND));
Note: See TracChangeset
for help on using the changeset viewer.