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

Unified Diff: ui/ozone/platform/dri/dri_window_delegate_proxy.h

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
Index: ui/ozone/platform/dri/dri_window_delegate_proxy.h
diff --git a/ui/ozone/platform/dri/dri_window_delegate_proxy.h b/ui/ozone/platform/dri/dri_window_delegate_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ed90951df1c9738d4d71afbc7c2c8cc53d0d355
--- /dev/null
+++ b/ui/ozone/platform/dri/dri_window_delegate_proxy.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_
+#define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_
+
+#include "ui/ozone/platform/dri/dri_window_delegate.h"
+
+namespace ui {
+
+class GpuPlatformSupportHostGbm;
+
+// This is used when running with a GPU process (or with the in-process GPU) to
+// IPC the native window configuration from the browser to the GPU.
+class DriWindowDelegateProxy : public DriWindowDelegate {
+ public:
+ DriWindowDelegateProxy(gfx::AcceleratedWidget widget,
+ GpuPlatformSupportHostGbm* sender);
+ virtual ~DriWindowDelegateProxy();
+
+ // DriWindowDelegate:
+ virtual void Initialize() OVERRIDE;
+ virtual void Shutdown() OVERRIDE;
+ virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
+ virtual HardwareDisplayController* GetController() OVERRIDE;
+ virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE;
+
+ private:
+ gfx::AcceleratedWidget widget_;
+ GpuPlatformSupportHostGbm* sender_;
+
+ DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateProxy);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698