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

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

Issue 341213002: Redraw only dirty area for accelerated 2D Canvas. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New patch with comments applied 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
index ccca4ddd03fc0da373af9092d78ca687cfec0e49..0b66f7451d663b9dd7adbb5ece5220afd9dae348 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -1744,7 +1744,7 @@ void CanvasRenderingContext2D::didDraw(const FloatRect& dirtyRect)
if (isAccelerated()) {
RenderBox* renderBox = canvas()->renderBox();
jamesr 2014/06/23 17:41:44 you aren't using this any more, no need to grab it
if (renderBox && renderBox->hasAcceleratedCompositing()) {
abarth-chromium 2014/06/23 17:09:04 I wonder if we can replace this call to hasAcceler
- renderBox->contentChanged(CanvasPixelsChanged);
+ platformLayer()->invalidateRect(dirtyRect);
canvas()->clearCopiedImage();
canvas()->notifyObserversCanvasChanged(dirtyRect);
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698