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

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

Issue 2796103002: WIP: Adjust externally allocated memory when ImageBitmap is transferred (Closed)
Patch Set: works Created 3 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 383fef24ee2b27e4100376a313a724884af1ef5f..9035d9db79f7eeabd3ec115f6884e69579711649 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 {
// sub-class
virtual bool HasMailbox() { return false; }
virtual void Transfer() {}
+ void RegisterExternalAllocationWithCurrentContext();
+ void UnregisterExternalAllocationWithCurrentContext();
// Methods overrided by AcceleratedStaticBitmapImage only
virtual void CopyToTexture(WebGraphicsContext3DProvider*,

Powered by Google App Engine
This is Rietveld 408576698