| 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 dab65eeb322e1bb5012ec6a6ebc0e908cc363d5e..dbf3352f79a841483907a831d317b4c55a589cb1 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
|
| @@ -38,6 +38,8 @@ class PLATFORM_EXPORT StaticBitmapImage : public Image {
|
| void setOriginClean(bool flag) { m_isOriginClean = flag; }
|
| bool isPremultiplied() const { return m_isPremultiplied; }
|
| void setPremultiplied(bool flag) { m_isPremultiplied = flag; }
|
| + // In our current design, the SkImage in this class is always *not*
|
| + // texture-backed.
|
| bool isTextureBacked() override;
|
| virtual void copyToTexture(WebGraphicsContext3DProvider*,
|
| GLuint,
|
| @@ -49,16 +51,17 @@ class PLATFORM_EXPORT StaticBitmapImage : public Image {
|
| virtual bool hasMailbox() { return false; }
|
| virtual void transfer() {}
|
|
|
| + virtual void ensureMailbox() {}
|
| virtual gpu::Mailbox getMailbox() { return gpu::Mailbox(); }
|
| virtual gpu::SyncToken getSyncToken() { return gpu::SyncToken(); }
|
| - virtual void ensureMailbox() {}
|
| + virtual void deleteTexture(const int8_t* syncTokenData) {}
|
|
|
| protected:
|
| - StaticBitmapImage(sk_sp<SkImage>);
|
| StaticBitmapImage(); // empty constructor for derived class.
|
| sk_sp<SkImage> m_image;
|
|
|
| private:
|
| + StaticBitmapImage(sk_sp<SkImage>);
|
| bool m_isOriginClean = true;
|
| // The premultiply info is stored here because the SkImage API
|
| // doesn't expose this info.
|
|
|