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

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

Issue 2683343002: Notify listeners on bitmaprenderer context changes (Closed)
Patch Set: Change didDraw() call. Created 3 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: 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 a55d1e433054ac8a0de27e1768d029e066d73c8d..81697b836243ce09f0f7e09c1812f128a48a418f 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -1257,8 +1257,11 @@ PassRefPtr<Image> HTMLCanvasElement::getSourceImageForCanvas(
return result;
}
- if (m_context->getContextType() == CanvasRenderingContext::ContextImageBitmap)
+ if (m_context->getContextType() ==
+ CanvasRenderingContext::ContextImageBitmap) {
+ *status = NormalSourceImageStatus;
return m_context->getImage(hint, reason);
+ }
sk_sp<SkImage> skImage;
// TODO(ccameron): Canvas should produce sRGB images.

Powered by Google App Engine
This is Rietveld 408576698