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

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

Issue 479713002: [Ozone-GBM] Adding NativeWindowDelegate to IPC window changes to the GPU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix name Created 6 years, 4 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/gpu_platform_support_gbm.cc ('k') | ui/ozone/platform/dri/screen_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6106cb750be2f342dea15f7f0ad16d9c48801ba8..39cc5f266e76c836b3aa8b9debb8f35417612732 100644
--- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
+++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
@@ -14,6 +14,7 @@
#include "ui/events/ozone/evdev/event_factory_evdev.h"
#include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h"
#include "ui/ozone/platform/dri/dri_window.h"
+#include "ui/ozone/platform/dri/dri_window_manager.h"
#include "ui/ozone/platform/dri/dri_wrapper.h"
#include "ui/ozone/platform/dri/gbm_buffer.h"
#include "ui/ozone/platform/dri/gbm_surface.h"
@@ -140,7 +141,9 @@ class OzonePlatformGbm : public OzonePlatform {
buffer_generator_->device(),
screen_manager_.get());
gpu_platform_support_.reset(
- new GpuPlatformSupportGbm(surface_factory_ozone_.get()));
+ new GpuPlatformSupportGbm(surface_factory_ozone_.get(),
+ &gpu_window_manager_,
+ screen_manager_.get()));
#if defined(OS_CHROMEOS)
gpu_platform_support_->AddHandler(scoped_ptr<GpuPlatformSupport>(
new DisplayMessageHandler(
@@ -169,6 +172,8 @@ class OzonePlatformGbm : public OzonePlatform {
scoped_ptr<GpuPlatformSupportGbm> gpu_platform_support_;
scoped_ptr<GpuPlatformSupportHostGbm> gpu_platform_support_host_;
+ DriWindowManager gpu_window_manager_;
+
DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm);
};
« no previous file with comments | « ui/ozone/platform/dri/gpu_platform_support_gbm.cc ('k') | ui/ozone/platform/dri/screen_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698