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 066ede2b2c8d56f0b6e1ea73a09277b7397e8678..98055da4971f66bae500aea2c87e4561a2d86ac7 100644 |
--- a/ui/ozone/platform/dri/ozone_platform_dri.cc |
+++ b/ui/ozone/platform/dri/ozone_platform_dri.cc |
@@ -38,8 +38,6 @@ namespace ui { |
namespace { |
-const char kDefaultGraphicsCardPath[] = "/dev/dri/card0"; |
- |
// OzonePlatform for Linux DRI (Direct Rendering Infrastructure) |
// |
// This platform is Linux without any display server (no X, wayland, or |
@@ -47,7 +45,7 @@ const char kDefaultGraphicsCardPath[] = "/dev/dri/card0"; |
class OzonePlatformDri : public OzonePlatform { |
public: |
OzonePlatformDri() |
- : dri_(new DriWrapper(kDefaultGraphicsCardPath)), |
+ : dri_(new DriWrapper(NULL)), |
buffer_generator_(new DriBufferGenerator()), |
screen_manager_(new ScreenManager(dri_.get(), buffer_generator_.get())), |
device_manager_(CreateDeviceManager()) {} |
@@ -152,6 +150,7 @@ class OzonePlatformDri : public OzonePlatform { |
} // namespace |
OzonePlatform* CreateOzonePlatformDri() { |
+ LOG(ERROR) << "zachr: Using Platform Dri"; |
dnicoara
2015/02/13 02:38:26
debug log
Zach Reizner
2015/02/13 18:45:15
Whoops. Line removed.
|
return new OzonePlatformDri; |
} |