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

Unified Diff: content/common/gpu/gpu_channel.h

Issue 6793054: Moved code that runs in both the browser and GPU process from content/gpu to content/common/gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/common/gpu/content_gpu_client.h ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
===================================================================
--- content/common/gpu/gpu_channel.h (revision 0)
+++ content/common/gpu/gpu_channel.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_GPU_GPU_CHANNEL_H_
-#define CONTENT_GPU_GPU_CHANNEL_H_
+#ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
+#define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
#pragma once
#include <set>
@@ -14,13 +14,13 @@
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "build/build_config.h"
+#include "content/common/gpu/gpu_command_buffer_stub.h"
#include "content/common/message_router.h"
-#include "content/gpu/gpu_command_buffer_stub.h"
#include "ipc/ipc_sync_channel.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
-class GpuRenderThread;
+class GpuChannelManager;
class GpuWatchdogThread;
struct GPUCreateCommandBufferConfig;
class MessageLoop;
@@ -36,15 +36,17 @@
public base::RefCountedThreadSafe<GpuChannel> {
public:
// Takes ownership of the renderer process handle.
- GpuChannel(GpuRenderThread* gpu_render_thread,
+ GpuChannel(GpuChannelManager* gpu_channel_manager,
GpuWatchdogThread* gpu_watchdog_thread,
int renderer_id);
virtual ~GpuChannel();
bool Init(MessageLoop* io_message_loop, base::WaitableEvent* shutdown_event);
- // Get the GpuThread that owns this channel.
- GpuRenderThread* gpu_render_thread() const { return gpu_render_thread_; }
+ // Get the GpuChannelManager that owns this channel.
+ GpuChannelManager* gpu_channel_manager() const {
+ return gpu_channel_manager_;
+ }
// Returns the name of the associated IPC channel.
std::string GetChannelName();
@@ -96,10 +98,10 @@
int32 decoder_host_id);
void OnDestroyVideoDecoder(int32 decoder_id);
- // The lifetime of objects of this class is managed by a GpuRenderThread. The
- // GpuRenderThreads destroy all the GpuChannels that they own when they
+ // The lifetime of objects of this class is managed by a GpuChannelManager.
+ // The GpuChannelManager destroy all the GpuChannels that they own when they
// are destroyed. So a raw pointer is safe.
- GpuRenderThread* gpu_render_thread_;
+ GpuChannelManager* gpu_channel_manager_;
scoped_ptr<IPC::SyncChannel> channel_;
@@ -127,4 +129,4 @@
DISALLOW_COPY_AND_ASSIGN(GpuChannel);
};
-#endif // CONTENT_GPU_GPU_CHANNEL_H_
+#endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
« no previous file with comments | « content/common/gpu/content_gpu_client.h ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698