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

Side by Side Diff: ui/ozone/platform/dri/native_window_manager.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_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_MANAGER_H_
7
8 #include <map>
9
10 #include "ui/gfx/native_widget_types.h"
11
12 namespace ui {
13
14 class NativeWindowDelegate;
15
16 class NativeWindowManager {
17 public:
18 NativeWindowManager();
19 ~NativeWindowManager();
20
21 gfx::AcceleratedWidget AllocateAcceleratedWidget();
22
23 void AddNativeWindowDelegate(gfx::AcceleratedWidget widget,
24 NativeWindowDelegate* surface);
25 void RemoveNativeWindowDelegate(gfx::AcceleratedWidget widget);
26 NativeWindowDelegate* GetNativeWindowDelegate(gfx::AcceleratedWidget widget);
27 bool HasNativeWindowDelegate(gfx::AcceleratedWidget widget);
28
29 private:
30 std::map<gfx::AcceleratedWidget, NativeWindowDelegate*> delegate_map_;
alexst (slow to review) 2014/08/18 17:43:47 Please typedef the map to something like WidgetToD
dnicoara 2014/08/18 18:55:24 Done.
31 gfx::AcceleratedWidget allocated_widgets_;
32
33 DISALLOW_COPY_AND_ASSIGN(NativeWindowManager);
34 };
35
36 } // namespace ui
37
38 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698