Index: ui/ozone/platform/dri/gbm_surface_factory.cc |
diff --git a/ui/ozone/platform/dri/gbm_surface_factory.cc b/ui/ozone/platform/dri/gbm_surface_factory.cc |
index 9e9d3c4f68e567cb6369af327b6c4f019fe40f54..9b7b87fca70fd730f6b11015a980aa34468383e0 100644 |
--- a/ui/ozone/platform/dri/gbm_surface_factory.cc |
+++ b/ui/ozone/platform/dri/gbm_surface_factory.cc |
@@ -75,14 +75,19 @@ scoped_ptr<gfx::VSyncProvider> GbmSurfaceAdapter::CreateVSyncProvider() { |
} // namespace |
-GbmSurfaceFactory::GbmSurfaceFactory(DriWrapper* dri, |
- gbm_device* device, |
- ScreenManager* screen_manager) |
- : DriSurfaceFactory(dri, screen_manager), |
- device_(device) {} |
+GbmSurfaceFactory::GbmSurfaceFactory() |
+ : DriSurfaceFactory(NULL, NULL), |
+ device_(NULL) {} |
GbmSurfaceFactory::~GbmSurfaceFactory() {} |
+void GbmSurfaceFactory::InitializeGpu( |
+ DriWrapper* dri, gbm_device* device, ScreenManager* screen_manager) { |
+ drm_ = dri; |
+ device_ = device; |
+ screen_manager_ = screen_manager; |
+} |
+ |
intptr_t GbmSurfaceFactory::GetNativeDisplay() { |
CHECK(state_ == INITIALIZED); |
return reinterpret_cast<intptr_t>(device_); |