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

Side by Side Diff: ui/ozone/platform/dri/native_window_delegate_impl.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_IMPL_H_
6 #define UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_IMPL_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/ozone/platform/dri/native_window_delegate.h"
11
12 namespace gfx {
13 class Rect;
14 } // namespace gfx
15
16 namespace ui {
17
18 class HardwareDisplayController;
19 class NativeWindowManager;
20 class ScreenManager;
21
22 class NativeWindowDelegateImpl : public NativeWindowDelegate {
23 public:
24 NativeWindowDelegateImpl(gfx::AcceleratedWidget widget,
25 NativeWindowManager* window_manager,
26 ScreenManager* screen_manager);
27 virtual ~NativeWindowDelegateImpl();
28
29 // NativeWindowDelegate:
30 virtual gfx::AcceleratedWidget GetWidget() OVERRIDE;
31 virtual HardwareDisplayController* GetController() OVERRIDE;
32 virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE;
33
34 private:
35 gfx::AcceleratedWidget widget_;
36
37 NativeWindowManager* window_manager_; // Not owned.
38 ScreenManager* screen_manager_; // Not owned.
39
40 base::WeakPtr<HardwareDisplayController> controller_;
41
42 DISALLOW_COPY_AND_ASSIGN(NativeWindowDelegateImpl);
43 };
44
45 } // namespace ui
46
47 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698