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

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

Issue 907453003: Move overdraw tracking code from GraphicsContext to CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 1c2a8180f7870b72fc0a0db4e3acf48a3e621790..30a211fb537b13f3660acc5cb801663f5fee176c 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -855,4 +855,9 @@ FloatSize HTMLCanvasElement::sourceSize() const
return FloatSize(width(), height());
}
+bool HTMLCanvasElement::isOpaque() const
+{
+ return m_context && !m_context->hasAlpha();
}
+
+} // blink

Powered by Google App Engine
This is Rietveld 408576698