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

Unified Diff: content/renderer/gpu/gpu_channel_host.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 | « content/renderer/gpu/command_buffer_proxy.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_channel_host.cc
diff --git a/content/renderer/gpu/gpu_channel_host.cc b/content/renderer/gpu/gpu_channel_host.cc
index 00995ac67b568f6a3fddc25767a4d498727283b2..b6e2d80084c3f0bddb910a56ad48f8e75f03d18d 100644
--- a/content/renderer/gpu/gpu_channel_host.cc
+++ b/content/renderer/gpu/gpu_channel_host.cc
@@ -206,6 +206,7 @@ CommandBufferProxy* GpuChannelHost::CreateViewCommandBuffer(
const std::string& allowed_extensions,
const std::vector<int32>& attribs,
const GURL& active_url) {
+ DCHECK(ChildThread::current());
#if defined(ENABLE_GPU)
AutoLock lock(context_lock_);
// An error occurred. Need to get the host again to reinitialize it.
@@ -219,7 +220,7 @@ CommandBufferProxy* GpuChannelHost::CreateViewCommandBuffer(
init_params.attribs = attribs;
init_params.active_url = active_url;
int32 route_id;
- if (!RenderThread::current()->Send(
+ if (!ChildThread::current()->Send(
new GpuHostMsg_CreateViewCommandBuffer(
render_view_id,
init_params,
« no previous file with comments | « content/renderer/gpu/command_buffer_proxy.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698