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

Side by Side Diff: ui/ozone/public/native_pixmap_manager.h

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove ChildNativePixmapManager or BrowserNativePixmapManager Created 5 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2015 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_PUBLIC_NATIVE_PIXMAP_MANAGER_H_
6 #define UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_
7
8 #include <vector>
9
10 #include "ui/ozone/ozone_export.h"
11 #include "ui/ozone/public/surface_factory_ozone.h"
12
13 namespace ui {
14
15 // The Ozone interface allows external implementations to hook into Chromium to
16 // provide the handle of a native surface for Browser and Render process.
reveman 2015/07/23 14:46:12 do you mean native pixmap and not native surface?
dshwang 2015/07/23 16:42:09 I though native pixmap is the handle of a native s
17 class OZONE_EXPORT NativePixmapManager {
18 public:
19 static NativePixmapManager* GetInstance();
20 static void SetInstance(scoped_ptr<NativePixmapManager> instance);
reveman 2015/07/23 14:46:12 s/scoped_ptr<NativePixmapManager> instance/NativeP
dshwang 2015/07/23 16:42:09 oh, interesting. done.
21
22 static scoped_ptr<NativePixmapManager> Create();
23
24 virtual ~NativePixmapManager();
25
26 struct Configuration {
27 SurfaceFactoryOzone::BufferFormat format;
28 SurfaceFactoryOzone::BufferUsage usage;
29 };
30
31 // Gets supported format/usage configurations.
32 virtual std::vector<Configuration> GetSupportedNativePixmapConfigurations()
33 const = 0;
34
35 protected:
36 NativePixmapManager();
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(NativePixmapManager);
40 };
41
42 } // namespace ui
43
44 #endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698