Changeset 88822 in webkit
- Timestamp:
- Jun 14, 2011 10:44:45 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r88817 r88822 1 2011-06-13 Adrienne Walker <enne@google.com> 2 3 Reviewed by James Robinson. 4 5 [chromium] Disable drawing for huge mask layers 6 https://bugs.webkit.org/show_bug.cgi?id=62607 7 8 * platform/chromium/compositing/huge-mask-layer-expected.txt: Added. 9 * platform/chromium/compositing/huge-mask-layer.html: Added. 10 1 11 2011-06-14 Dimitri Glazkov <dglazkov@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r88816 r88822 1 2011-06-13 Adrienne Walker <enne@google.com> 2 3 Reviewed by James Robinson. 4 5 [chromium] Disable drawing for huge mask layers 6 https://bugs.webkit.org/show_bug.cgi?id=62607 7 8 Because masks have a different layer size than the layer they are 9 masking, they are untiled. If they are too large to be contained 10 within a single texture, then they should just be disabled. 11 12 Test: platform/chromium/compositing/huge-mask-layer.html 13 14 * platform/graphics/chromium/ContentLayerChromium.cpp: 15 (WebCore::ContentLayerChromium::drawsContent): 16 (WebCore::ContentLayerChromium::paintContentsIfDirty): 17 * platform/graphics/chromium/LayerTilerChromium.h: 18 (WebCore::LayerTilerChromium::getSingleTexture): 19 (WebCore::LayerTilerChromium::numTiles): 20 1 21 2011-06-14 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com> 2 22 -
trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp
r87822 r88822 110 110 m_tiler->invalidateRect(dirty); 111 111 112 if (!drawsContent()) 113 return; 114 112 115 m_tiler->prepareToUpdate(layerRect); 113 116 m_dirtyRect = FloatRect(); … … 219 222 bool ContentLayerChromium::drawsContent() const 220 223 { 221 return m_owner && m_owner->drawsContent() && (!m_tiler || !m_tiler->skipsDraw()); 224 if (!m_owner || !m_owner->drawsContent()) 225 return false; 226 227 if (!m_tiler) 228 return true; 229 230 if (m_tilingOption == NeverTile && m_tiler->numTiles() > 1) 231 return false; 232 233 return !m_tiler->skipsDraw(); 222 234 } 223 235 -
trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp
r88577 r88822 84 84 LayerTexture* LayerTilerChromium::getSingleTexture() 85 85 { 86 if (m_tilingData.numTiles() != 1) 87 return 0; 88 86 89 Tile* tile = tileAt(0, 0); 87 90 return tile ? tile->texture() : 0; -
trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.h
r86805 r88822 61 61 // Draw all tiles that intersect with the content rect. 62 62 void draw(const IntRect& contentRect, const TransformationMatrix&, float opacity); 63 64 int numTiles() const { return m_tilingData.numTiles(); } 63 65 64 66 // Set position of this tiled layer in content space.
Note: See TracChangeset
for help on using the changeset viewer.