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

Unified Diff: cc/resources/video_resource_updater.h

Issue 2838713004: Replace SupportsWeakPtr with WeakPtrFactory in VideoResourceUpdater (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
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.h
diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
index f36ae95f2136741915e8092ece0f8883a88a52c9..c00b9fc0b0cffd94f78a9b617f9d7a2490569eb1 100644
--- a/cc/resources/video_resource_updater.h
+++ b/cc/resources/video_resource_updater.h
@@ -70,8 +70,7 @@ class CC_EXPORT VideoFrameExternalResources {
// VideoResourceUpdater is used by the video system to produce frame content as
// resources consumable by the compositor.
-class CC_EXPORT VideoResourceUpdater
- : public base::SupportsWeakPtr<VideoResourceUpdater> {
+class CC_EXPORT VideoResourceUpdater {
public:
VideoResourceUpdater(ContextProvider* context_provider,
ResourceProvider* resource_provider,
@@ -185,6 +184,8 @@ class CC_EXPORT VideoResourceUpdater
// data transfers.
ResourceList all_resources_;
+ base::WeakPtrFactory<VideoResourceUpdater> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater);
};
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698