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

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 // This is used when running with a GPU process (or with the in-process GPU) to
16 // IPC the native window configuration from the browser to the GPU.
17 class NativeWindowDelegateProxy : public NativeWindowDelegate {
18 public:
19 NativeWindowDelegateProxy(NativeWindowManager* window_manager,
20 GpuPlatformSupportHostGbm* sender);
21 virtual ~NativeWindowDelegateProxy();
22
23 // NativeWindowDelegate:
24 virtual gfx::AcceleratedWidget GetWidget() OVERRIDE;
25 virtual HardwareDisplayController* GetController() OVERRIDE;
26 virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE;
27
28 private:
29 gfx::AcceleratedWidget widget_;
30 NativeWindowManager* window_manager_;
31 GpuPlatformSupportHostGbm* sender_;
32
33 DISALLOW_COPY_AND_ASSIGN(NativeWindowDelegateProxy);
34 };
35
36 } // namespace ui
37
38 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698