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

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

Issue 1297663002: Eliminate deferral overhead with canvas to canvas draws (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: git cl web Created 5 years, 4 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/html/HTMLCanvasElement.h ('k') | Source/modules/canvas2d/CanvasRenderingContext2D.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index a6627339fbb0a8d6de7cf8964cca584e3984cae5..ba236832342b0382e851b15e55f70a98f2f5e158 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -744,9 +744,10 @@ SkCanvas* HTMLCanvasElement::drawingCanvas() const
return buffer() ? m_imageBuffer->canvas() : nullptr;
}
-SkCanvas* HTMLCanvasElement::immediateDrawingCanvas() const
+void HTMLCanvasElement::disableDeferral() const
{
- return buffer() ? m_imageBuffer->immediateCanvas() : nullptr;
+ if (buffer())
+ m_imageBuffer->disableDeferral();
}
SkCanvas* HTMLCanvasElement::existingDrawingCanvas() const
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | Source/modules/canvas2d/CanvasRenderingContext2D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698