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

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

Issue 1288773005: 2D canvas: remain in deferred rendering mode with canvas to canvas drawImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index ba236832342b0382e851b15e55f70a98f2f5e158..17f8140c86cd65e34e2739bd259519c62b523d96 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -434,6 +434,11 @@ bool HTMLCanvasElement::is3D() const
return m_context && m_context->is3d();
}
+bool HTMLCanvasElement::isAnimated2D() const
+{
+ return m_context && m_context->is2d() && hasImageBuffer() && m_imageBuffer->isAnimated();
+}
+
void HTMLCanvasElement::setSurfaceSize(const IntSize& size)
{
m_size = size;

Powered by Google App Engine
This is Rietveld 408576698