Index: content/common/gpu/gpu_channel.h |
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h |
index a92ed87ad2cea6fc6d1d935d515069cb994b5f9e..c520a591f4bff081945805763d22d562bb01c24b 100644 |
--- a/content/common/gpu/gpu_channel.h |
+++ b/content/common/gpu/gpu_channel.h |
@@ -45,7 +45,6 @@ class GpuChannel : public IPC::Channel::Listener, |
gfx::GLShareGroup* share_group, |
int client_id, |
bool software); |
- virtual ~GpuChannel(); |
bool Init(base::MessageLoopProxy* io_message_loop, |
base::WaitableEvent* shutdown_event); |
@@ -110,6 +109,9 @@ class GpuChannel : public IPC::Channel::Listener, |
bool ShouldPreferDiscreteGpu() const; |
private: |
+ friend class base::RefCountedThreadSafe<GpuChannel>; |
+ virtual ~GpuChannel(); |
+ |
void OnDestroy(); |
bool OnControlMessageReceived(const IPC::Message& msg); |