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

Unified Diff: content/renderer/gpu/gpu_video_decode_accelerator_host.h

Issue 7634019: Allow cmdbuffer creation from compositor thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nest class Created 9 years, 4 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 | « content/renderer/gpu/gpu_surface_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_video_decode_accelerator_host.h
diff --git a/content/renderer/gpu/gpu_video_decode_accelerator_host.h b/content/renderer/gpu/gpu_video_decode_accelerator_host.h
index 70f7a503374dfa04e58142fe2d1847f1877a3a8b..de1c1068220594896c3db98159654bf3da1a30fe 100644
--- a/content/renderer/gpu/gpu_video_decode_accelerator_host.h
+++ b/content/renderer/gpu/gpu_video_decode_accelerator_host.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "ipc/ipc_channel.h"
#include "media/video/video_decode_accelerator.h"
@@ -18,7 +19,8 @@ class GpuChannelHost;
class GpuVideoDecodeAcceleratorHost
: public IPC::Channel::Listener,
public media::VideoDecodeAccelerator,
- public base::NonThreadSafe {
+ public base::NonThreadSafe,
+ public base::SupportsWeakPtr<GpuVideoDecodeAcceleratorHost> {
public:
// |channel| is used to send IPC messages to GPU process.
GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel,
« no previous file with comments | « content/renderer/gpu/gpu_surface_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698