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

Unified Diff: content/renderer/gpu/command_buffer_proxy.cc

Issue 7860028: Retry 3 to split WebGraphicsContext3DCommandBufferImpl::initialize() into two stages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fold thread fixes into this patch. Created 9 years, 3 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 | « build/common.gypi ('k') | content/renderer/gpu/gpu_channel_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/command_buffer_proxy.cc
diff --git a/content/renderer/gpu/command_buffer_proxy.cc b/content/renderer/gpu/command_buffer_proxy.cc
index 4c028c4de8748e37881c2438cfb5879d8596db68..732703f64f210ed51daa0c7ff440fe4d9ff32425 100644
--- a/content/renderer/gpu/command_buffer_proxy.cc
+++ b/content/renderer/gpu/command_buffer_proxy.cc
@@ -94,12 +94,12 @@ void CommandBufferProxy::SetChannelErrorCallback(Callback0::Type* callback) {
bool CommandBufferProxy::Initialize(int32 size) {
DCHECK(!ring_buffer_.get());
- RenderThread* render_thread = RenderThread::current();
- if (!render_thread)
+ ChildThread* child_thread = ChildThread::current();
+ if (!child_thread)
return false;
base::SharedMemoryHandle handle;
- if (!render_thread->Send(new ViewHostMsg_AllocateSharedMemoryBuffer(
+ if (!child_thread->Send(new ViewHostMsg_AllocateSharedMemoryBuffer(
size,
&handle))) {
return false;
@@ -216,12 +216,12 @@ int32 CommandBufferProxy::CreateTransferBuffer(size_t size, int32 id_request) {
if (last_state_.error != gpu::error::kNoError)
return -1;
- RenderThread* render_thread = RenderThread::current();
- if (!render_thread)
+ ChildThread* child_thread = ChildThread::current();
+ if (!child_thread)
return -1;
base::SharedMemoryHandle handle;
- if (!render_thread->Send(new ViewHostMsg_AllocateSharedMemoryBuffer(
+ if (!child_thread->Send(new ViewHostMsg_AllocateSharedMemoryBuffer(
size,
&handle))) {
return -1;
« no previous file with comments | « build/common.gypi ('k') | content/renderer/gpu/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698