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

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

Issue 356083002: [Ozone] Add Ozone EGL demo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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/gbm_surface_factory.h ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface_factory.h ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698