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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.h

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Draw layered images with a recording GraphicContext Created 5 years, 1 month 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/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);

Powered by Google App Engine
This is Rietveld 408576698