Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1794)

Unified Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 353403006: Consider subpixel accumulation when invalidating paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also squashing path Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
index d5637522c90fb7713d9fcaebb75fd8f0977c2077..5f209729e89ae19650bdf898a8e1a81c381c6bc2 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
@@ -1919,11 +1919,14 @@ struct SetContentsNeedsDisplayInRectFunctor {
};
// r is in the coordinate space of the layer's render object
-void CompositedLayerMapping::setContentsNeedDisplayInRect(const IntRect& r)
+void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r)
{
// FIXME: need to split out repaints for the background.
ASSERT(!paintsIntoCompositedAncestor());
- SetContentsNeedsDisplayInRectFunctor functor = { r };
+
+ SetContentsNeedsDisplayInRectFunctor functor = {
+ pixelSnappedIntRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size())
chrishtr 2014/07/02 16:59:24 It's not quite what I had in mind. Instead of usin
Xianzhu 2014/07/02 17:17:54 I think we should keep 'adjusting of rects with su
+ };
ApplyToGraphicsLayers(this, functor, ApplyToContentLayers);
}
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698