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

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.h

Issue 1610883002: Oilpan: ImageObserver needs to be a GC mixin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 4 years, 10 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/core/fetch/ImageResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.h b/third_party/WebKit/Source/core/fetch/ImageResource.h
index 277ea80986ddd9f8f2dc60529d92a79ec169d8a2..fd108b5944341fddaab04590d0749fba2901cc18 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.h
@@ -44,7 +44,7 @@ class SecurityOrigin;
class CORE_EXPORT ImageResource final : public Resource, public ImageObserver {
friend class MemoryCache;
-
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageResource);
public:
using ClientType = ImageResourceClient;
@@ -121,6 +121,8 @@ public:
void animationAdvanced(const blink::Image*) override;
void changedInRect(const blink::Image*, const IntRect&) override;
+ DECLARE_VIRTUAL_TRACE();
+
protected:
bool isSafeToUnlock() const override;
void destroyDecodedDataIfPossible() override;

Powered by Google App Engine
This is Rietveld 408576698