Index: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
index aaf33831899d843bca629adb615a885a1ec6f7f2..981dbbd127bb719c041f6efdb1497a5811eb55e5 100644 |
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
@@ -81,6 +81,9 @@ public: |
// Return true if the content is updated. |
virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return false; } |
+ // Note: this function is strictly for OffscreenCanvas only. |
+ virtual bool isPaintable() const { NOTREACHED(); return false; } |
Justin Novosad
2016/08/19 16:49:39
could you make this pure virtual instead of using
xlai (Olivia)
2016/08/19 17:11:33
Done.
|
+ |
virtual WebLayer* platformLayer() const { return nullptr; } |
enum LostContextMode { |