Index: third_party/WebKit/Source/platform/graphics/BitmapImage.h |
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.h b/third_party/WebKit/Source/platform/graphics/BitmapImage.h |
index 61e0594a8072ee8dd424acb9ad668b8ebfd7add7..0f99d6307b6c0ff6f22f0ce2756d318c21ec5365 100644 |
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h |
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h |
@@ -70,7 +70,10 @@ public: |
bool dataChanged(bool allDataReceived) override; |
bool isAllDataReceived() const { return m_allDataReceived; } |
+ PassRefPtr<ColorSpaceProfile> colorProfile() const { return m_source.colorProfile(); } |
bool hasColorProfile() const; |
+ void setDrawingToCanvasElement(bool status) { m_drawingToCanvasElement = status; } |
+ bool drawingToCanvasElement() { return m_drawingToCanvasElement; } |
// It may look unusual that there's no start animation call as public API. |
// This because we start and stop animating lazily. Animation starts when |
@@ -191,6 +194,7 @@ private: |
bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the first image frame yet from ImageIO. |
mutable bool m_hasUniformFrameSize : 1; |
mutable bool m_haveFrameCount : 1; |
+ mutable bool m_drawingToCanvasElement : 1; |
}; |
DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |