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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2969153002: vr/gpu: BrowserGpuChannelHostFactory should be called on the same thread. (Closed)
Patch Set: comment Created 3 years, 5 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
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 6ef9fb42387aa4a02b328f2dfb39ae08c6442631..6e3638252eae308300a01a2b2e6170ee1671a59f 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -59,6 +59,7 @@
#include "content/common/gpu_stream_constants.h"
#include "content/public/browser/android/compositor.h"
#include "content/public/browser/android/compositor_client.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
#include "gpu/command_buffer/client/context_support.h"
#include "gpu/command_buffer/client/gles2_interface.h"
@@ -409,6 +410,7 @@ void Compositor::CreateContextProvider(
gpu::gles2::ContextCreationAttribHelper attributes,
gpu::SharedMemoryLimits shared_memory_limits,
ContextProviderCallback callback) {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
BrowserGpuChannelHostFactory::instance()->EstablishGpuChannel(
base::Bind(&CreateContextProviderAfterGpuChannelEstablished, handle,
attributes, shared_memory_limits, callback));
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.cc ('k') | content/public/browser/android/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698