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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2104053004: Revert of Make 2D canvas disable gpu acceleration when getImageData is called (patchset #6 id:10000… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2782
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index 65cc8039420e7cae77031c04e24088b1d3245578..6271feabec95c3d4c4baca7d5d590420ae9f0450 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -318,13 +318,6 @@ void HTMLCanvasElement::didFinalizeFrame()
m_dirtyRect = FloatRect();
}
-void HTMLCanvasElement::didDisableAcceleration()
-{
- // We must force a paint invalidation on the canvas even if it's
- // content did not change because it layer was destroyed.
- didDraw(FloatRect(0, 0, size().width(), size().height()));
-}
-
void HTMLCanvasElement::restoreCanvasMatrixClipStack(SkCanvas* canvas) const
{
if (m_context)

Powered by Google App Engine
This is Rietveld 408576698