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

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

Issue 338193003: ozone: gpu: Add plumbing for platform-specific gpu messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge ozone_gpu back into ozone 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
Index: ui/ozone/platform/dri/ozone_platform_gbm.cc
diff --git a/ui/ozone/platform/dri/ozone_platform_gbm.cc b/ui/ozone/platform/dri/ozone_platform_gbm.cc
index 4e47a289f841630bbcf75ee1ad386f43242a6368..0dff77200aa8c9eb5fd4921abe66268920530c90 100644
--- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
+++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
@@ -99,6 +99,8 @@ class OzonePlatformGbm : public OzonePlatform {
cursor_factory_ozone_.reset(new CursorFactoryOzone());
event_factory_ozone_.reset(new EventFactoryEvdev(
NULL, device_manager_.get()));
+
+ gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
}
virtual void InitializeGPU() OVERRIDE {
@@ -110,6 +112,8 @@ class OzonePlatformGbm : public OzonePlatform {
new GbmSurfaceFactory(dri_.get(),
surface_generator_->device(),
screen_manager_.get()));
+
+ gpu_platform_support_.reset(CreateStubGpuPlatformSupport());
}
private:
@@ -123,6 +127,9 @@ class OzonePlatformGbm : public OzonePlatform {
scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
+ scoped_ptr<GpuPlatformSupport> gpu_platform_support_;
+ scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_;
+
DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm);
};

Powered by Google App Engine
This is Rietveld 408576698