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

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: StaticBitmapImage now has a second parameter for origin clean flag 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..4b1f37f4e349757e73c2faf92a57ddf55728086b 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
@@ -15,7 +15,7 @@ public:
bool currentFrameIsComplete() override { return true; }
- static PassRefPtr<StaticBitmapImage> create(PassRefPtr<SkImage>);
+ static PassRefPtr<StaticBitmapImage> create(PassRefPtr<SkImage>, bool);
virtual void destroyDecodedData(bool destroyAll) { }
virtual bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata);
virtual IntSize size() const;
@@ -23,10 +23,12 @@ public:
PassRefPtr<SkImage> imageForCurrentFrame() override;
+ bool currentFrameHasSingleSecurityOrigin() const override {return m_isOriginClean;}
protected:
- StaticBitmapImage(PassRefPtr<SkImage>);
+ StaticBitmapImage(PassRefPtr<SkImage>, bool);
RefPtr<SkImage> m_image;
+ bool m_isOriginClean;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698