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

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

Issue 2796103002: WIP: Adjust externally allocated memory when ImageBitmap is transferred (Closed)
Patch Set: Created 3 years, 8 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 2a203df8d7516239f60e4ef6d6dd298250e4811f..5e538e78d2214878b9f1ccfe1585befa9958fb59 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
@@ -39,6 +39,8 @@ class PLATFORM_EXPORT StaticBitmapImage : public Image {
virtual bool hasMailbox() { return false; }
virtual void transfer() {}
+ virtual void registerExternalAllocationWithCurrentContext() {}
+ virtual void unregisterExternalAllocationWithCurrentContext() {}
Justin Novosad 2017/04/04 16:15:15 Would be better to register/unregister right here
// Methods overrided by AcceleratedStaticBitmapImage only
virtual void copyToTexture(WebGraphicsContext3DProvider*,

Powered by Google App Engine
This is Rietveld 408576698