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

Unified Diff: ui/ozone/public/ui_thread_gpu.h

Issue 936703002: Fix UiThreadGpu initialization for video accelerator tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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: ui/ozone/public/ui_thread_gpu.h
diff --git a/ui/ozone/public/ui_thread_gpu.h b/ui/ozone/public/ui_thread_gpu.h
index 4e75dabfde462cdc9714e574304b51bae8ce0545..30d5beb4c02fe9452ea562b6929827f7fc9984f7 100644
--- a/ui/ozone/public/ui_thread_gpu.h
+++ b/ui/ozone/public/ui_thread_gpu.h
@@ -5,10 +5,12 @@
#ifndef UI_OZONE_PUBLIC_UI_THREAD_GPU_H_
#define UI_OZONE_PUBLIC_UI_THREAD_GPU_H_
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "ui/ozone/ozone_export.h"
namespace base {
+class SingleThreadTaskRunner;
class Thread;
}
@@ -27,7 +29,9 @@ class OZONE_EXPORT UiThreadGpu {
virtual ~UiThreadGpu();
// Start processing gpu messages.
- bool Initialize();
+ bool Initialize(
+ const scoped_refptr<base::SingleThreadTaskRunner>& browser_task_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& gpu_task_runner);
private:
scoped_ptr<FakeGpuProcess> fake_gpu_process_;

Powered by Google App Engine
This is Rietveld 408576698