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

Side by Side Diff: ui/ozone/platform/dri/native_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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_
7
8 #include "ui/ozone/platform/dri/native_window_delegate.h"
9
10 namespace ui {
11
12 class NativeWindowManager;
13 class GpuPlatformSupportHostGbm;
14
15 class NativeWindowDelegateProxy : public NativeWindowDelegate {
16 public:
17 NativeWindowDelegateProxy(NativeWindowManager* window_manager,
18 GpuPlatformSupportHostGbm* sender);
19 virtual ~NativeWindowDelegateProxy();
20
21 // NativeWindowDelegate:
22 virtual gfx::AcceleratedWidget GetWidget() OVERRIDE;
23 virtual HardwareDisplayController* GetController() OVERRIDE;
24 virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE;
25
26 private:
27 gfx::AcceleratedWidget widget_;
28 NativeWindowManager* window_manager_;
29 GpuPlatformSupportHostGbm* sender_;
30
31 DISALLOW_COPY_AND_ASSIGN(NativeWindowDelegateProxy);
32 };
33
34 } // namespace ui
35
36 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698