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

Unified Diff: Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 646133002: Don't convert invalidations to a FloatRect. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: invalidationint: . Created 6 years, 2 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 | « no previous file | Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Canvas2DLayerBridge.cpp
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.cpp b/Source/platform/graphics/Canvas2DLayerBridge.cpp
index 0fc3f5db9d4cd8fee86e399412c86764234b09a2..c6d8de0985f2ba380bb2e8b0ff9bf4b72a47e617 100644
--- a/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -566,7 +566,7 @@ void Canvas2DLayerBridge::finalizeFrame(const FloatRect &dirtyRect)
{
ASSERT(!m_destructionInProgress);
Canvas2DLayerManager::get().layerDidDraw(this);
- m_layer->layer()->invalidateRect(dirtyRect);
+ m_layer->layer()->invalidateRect(enclosingIntRect(dirtyRect));
m_didRecordDrawCommand = true;
}
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698