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

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: take care of single security origin 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..9880103424fc68105d146694e2a2da3788dfdf23 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>, SingleSecurityOriginType);
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>, SingleSecurityOriginType);
RefPtr<SkImage> m_image;
+ bool m_isOriginClean;
Justin Novosad 2016/01/08 19:08:43 As discussed live, I would like this to be renamed
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698