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 |
index 9ed90951df1c9738d4d71afbc7c2c8cc53d0d355..9e0b1068b6c1c4acbbed44770f5bc7cfb1a61ce6 100644 |
--- a/ui/ozone/platform/dri/dri_window_delegate_proxy.h |
+++ b/ui/ozone/platform/dri/dri_window_delegate_proxy.h |
@@ -5,6 +5,8 @@ |
#ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_ |
#define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_ |
+#include "ui/gfx/geometry/rect.h" |
+#include "ui/ozone/platform/dri/channel_observer.h" |
#include "ui/ozone/platform/dri/dri_window_delegate.h" |
namespace ui { |
@@ -13,7 +15,8 @@ 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 { |
+class DriWindowDelegateProxy : public DriWindowDelegate, |
+ public ChannelObserver { |
public: |
DriWindowDelegateProxy(gfx::AcceleratedWidget widget, |
GpuPlatformSupportHostGbm* sender); |
@@ -26,9 +29,16 @@ class DriWindowDelegateProxy : public DriWindowDelegate { |
virtual HardwareDisplayController* GetController() OVERRIDE; |
virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE; |
+ // ChannelObserver: |
+ virtual void OnChannelEstablished() OVERRIDE; |
+ virtual void OnChannelDestroyed() OVERRIDE; |
+ |
private: |
gfx::AcceleratedWidget widget_; |
GpuPlatformSupportHostGbm* sender_; |
+ gfx::Rect bounds_; |
+ // Tracks if the connection is established or not. |
+ bool has_connection_; |
DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateProxy); |
}; |