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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 2255683005: Determine if OffscreenCanvas is paintable in different rendering contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Canvas2DTypecast
Patch Set: enum Created 4 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: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
index b1df36e9ee47acf7441c013f1d178ff28f2932e0..cf9f90045d775f25ae7757bfd53e5346acdfce11 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
@@ -224,6 +224,12 @@ private:
HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
bool m_pruneLocalFontCacheScheduled;
ListHashSet<String> m_fontLRUList;
+
+ bool isPaintable() const final
+ {
+ NOTREACHED();
+ return false;
+ }
};
DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context,

Powered by Google App Engine
This is Rietveld 408576698