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

Unified Diff: services/ui/gpu/gpu_main.h

Issue 2736693003: GpuMain: Fix thread_runner() access DCHECK fail (Closed)
Patch Set: Created 3 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 | « no previous file | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/gpu_main.h
diff --git a/services/ui/gpu/gpu_main.h b/services/ui/gpu/gpu_main.h
index a5c859d94601174f2d31c91c181bc87cca29847c..fb9adb49ec31d09e813afaec49143ce1a4309ad0 100644
--- a/services/ui/gpu/gpu_main.h
+++ b/services/ui/gpu/gpu_main.h
@@ -86,6 +86,7 @@ class GpuMain : public gpu::GpuSandboxHelper, public mojom::GpuMain {
// The main thread for Gpu.
base::Thread gpu_thread_;
+ scoped_refptr<base::SingleThreadTaskRunner> gpu_thread_task_runner_;
// The thread that handles IO events for Gpu.
base::Thread io_thread_;
@@ -96,6 +97,7 @@ class GpuMain : public gpu::GpuSandboxHelper, public mojom::GpuMain {
// and GLRenderer block on sync tokens from other command buffers. Thus,
// the gpu service must live on a separate thread.
base::Thread compositor_thread_;
+ scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_;
mojo::Binding<mojom::GpuMain> binding_;
« no previous file with comments | « no previous file | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698