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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 402613006: Fixing 2D canvas invalidation region tracking. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
index 829cdb8fb66916bdd22a5e9a786b74057c50b9d2..5e5b8cb970095f11b415d5f6658a9e67b6360461 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -1745,14 +1745,6 @@ void CanvasRenderingContext2D::didDraw(const FloatRect& dirtyRect)
if (dirtyRect.isEmpty())
return;
- // If we are drawing to hardware and we have a composited layer, just invalidate layer.
- if (isAccelerated() && platformLayer()) {
Stephen White 2014/07/17 15:28:19 Can we get rid of the platformLayer() override now
Justin Novosad 2014/07/17 17:07:21 We can't. That method is a virtual override from C
- platformLayer()->invalidateRect(dirtyRect);
- canvas()->clearCopiedImage();
- canvas()->notifyObserversCanvasChanged(dirtyRect);
- return;
- }
-
canvas()->didDraw(dirtyRect);
}

Powered by Google App Engine
This is Rietveld 408576698