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

Unified Diff: ui/ozone/platform/dri/dri_gpu_platform_support.h

Issue 891703006: [Ozone-DRI] Remove the extra helper thread and reuse the IO one (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 11 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 | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_gpu_platform_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_gpu_platform_support.h
diff --git a/ui/ozone/platform/dri/dri_gpu_platform_support.h b/ui/ozone/platform/dri/dri_gpu_platform_support.h
index daae2ec731f939c9c6bc43ac724ba9b0d2ecbe14..23257bf7a34c93c5d5a2d5646dc1b3deb2d3af51 100644
--- a/ui/ozone/platform/dri/dri_gpu_platform_support.h
+++ b/ui/ozone/platform/dri/dri_gpu_platform_support.h
@@ -10,13 +10,13 @@
#include "base/memory/scoped_vector.h"
#include "ipc/message_filter.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/ozone/platform/dri/dri_helper_thread.h"
#include "ui/ozone/public/gpu_platform_support.h"
class SkBitmap;
namespace base {
class FilePath;
+class SingleThreadTaskRunner;
}
namespace gfx {
@@ -77,17 +77,18 @@ class DriGpuPlatformSupport : public GpuPlatformSupport {
void OnAddGraphicsDevice(const base::FilePath& path);
void OnRemoveGraphicsDevice(const base::FilePath& path);
- void OnFilterAdded();
+ void SetIOTaskRunner(
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
IPC::Sender* sender_; // Not owned.
DriWrapper* drm_; // Not owned.
DriWindowDelegateManager* window_manager_; // Not owned.
ScreenManager* screen_manager_; // Not owned.
- DriHelperThread helper_thread_;
scoped_ptr<NativeDisplayDelegateDri> ndd_;
ScopedVector<GpuPlatformSupport> handlers_;
scoped_refptr<IPC::MessageFilter> filter_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
};
} // namespace ui
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_gpu_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698