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

Unified Diff: content/renderer/gpu/gpu_surface_proxy.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_channel_host.cc ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_surface_proxy.h
diff --git a/content/renderer/gpu/gpu_surface_proxy.h b/content/renderer/gpu/gpu_surface_proxy.h
index 62cb41e51d4cf6c5c58909c72dba33c19c20cccf..f4f8879090e5dbb5759c8d715694fe451ecb643a 100644
--- a/content/renderer/gpu/gpu_surface_proxy.h
+++ b/content/renderer/gpu/gpu_surface_proxy.h
@@ -8,6 +8,7 @@
#if defined(ENABLE_GPU)
+#include "base/memory/weak_ptr.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_message.h"
@@ -16,7 +17,8 @@ class Size;
}
// Client side proxy that forwards messages to a GpuSurfaceStub.
-class GpuSurfaceProxy : public IPC::Channel::Listener {
+class GpuSurfaceProxy : public IPC::Channel::Listener,
+ public base::SupportsWeakPtr<GpuSurfaceProxy> {
public:
GpuSurfaceProxy(IPC::Channel::Sender* channel, int route_id);
virtual ~GpuSurfaceProxy();
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698