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

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

Issue 1532473002: Add a origin clean flag in ImageBitmap class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Roll back to PS#10 which works, and remove createImageBitmap(image) Created 4 years, 11 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/platform/graphics/StaticBitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
index b2e84d95fa34be8503f1ca9387829ea6fda84406..9d4deafb27900196b98c0af1b8e3bc87cb2d4edb 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
@@ -23,10 +23,13 @@ public:
PassRefPtr<SkImage> imageForCurrentFrame() override;
+ bool originClean() const { return m_isOriginClean; }
+ void setOriginClean(bool flag) { m_isOriginClean = flag; }
protected:
StaticBitmapImage(PassRefPtr<SkImage>);
RefPtr<SkImage> m_image;
+ bool m_isOriginClean = false;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698