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

Unified Diff: ui/ozone/platform/dri/ozone_platform_dri.cc

Issue 856423002: [Ozone-Dri] Decouple the IO helper thread from DriWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gbm-wrapper
Patch Set: . 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
Index: ui/ozone/platform/dri/ozone_platform_dri.cc
diff --git a/ui/ozone/platform/dri/ozone_platform_dri.cc b/ui/ozone/platform/dri/ozone_platform_dri.cc
index a91ea1fa9fcb0f1a993e474d0bfb4f5b5189992b..5a3d31ff7a4a5767f600181ccdb407216233f687 100644
--- a/ui/ozone/platform/dri/ozone_platform_dri.cc
+++ b/ui/ozone/platform/dri/ozone_platform_dri.cc
@@ -47,7 +47,7 @@ const char kDefaultGraphicsCardPath[] = "/dev/dri/card0";
class OzonePlatformDri : public OzonePlatform {
public:
OzonePlatformDri()
- : dri_(new DriWrapper(kDefaultGraphicsCardPath, true)),
+ : dri_(new DriWrapper(kDefaultGraphicsCardPath, nullptr)),
buffer_generator_(new DriBufferGenerator()),
screen_manager_(new ScreenManager(dri_.get(), buffer_generator_.get())),
device_manager_(CreateDeviceManager()) {}
@@ -97,7 +97,7 @@ class OzonePlatformDri : public OzonePlatform {
ndd->Initialize();
gpu_platform_support_.reset(
new DriGpuPlatformSupport(dri_.get(), &window_delegate_manager_,
- screen_manager_.get(), ndd.Pass()));
+ screen_manager_.get(), nullptr, ndd.Pass()));
gpu_platform_support_host_.reset(new DriGpuPlatformSupportHost());
window_manager_.reset(new DriWindowManager());
cursor_factory_ozone_.reset(new BitmapCursorFactoryOzone);

Powered by Google App Engine
This is Rietveld 408576698