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

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

Issue 1962413002: Implement transferToImageBitmap() in WebGLRenderingContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add new test case, cache SkIMage Created 4 years, 7 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 18c2f8308570d9e3aa4ef55206a035658ddd0256..562bd2a3b00a2e892d421df2e89160525e7718b8 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
@@ -6,6 +6,7 @@
#define StaticBitmapImage_h
#include "platform/graphics/Image.h"
+#include "public/platform/WebExternalTextureMailbox.h"
namespace blink {
@@ -16,6 +17,7 @@ public:
bool currentFrameIsComplete() override { return true; }
static PassRefPtr<StaticBitmapImage> create(PassRefPtr<SkImage>);
+ static PassRefPtr<StaticBitmapImage> create(WebExternalTextureMailbox&);
virtual void destroyDecodedData(bool destroyAll) { }
virtual bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata);
virtual IntSize size() const;
@@ -29,8 +31,10 @@ public:
void setPremultiplied(bool flag) { m_isPremultiplied = flag; }
protected:
StaticBitmapImage(PassRefPtr<SkImage>);
+ StaticBitmapImage(WebExternalTextureMailbox&);
RefPtr<SkImage> m_image;
+ WebExternalTextureMailbox m_mailbox;
bool m_isOriginClean = true;
// The premultiply info is stored here because the SkImage API
// doesn't expose this info.

Powered by Google App Engine
This is Rietveld 408576698