Chromium Code Reviews| Index: ui/ozone/public/native_pixmap_manager.h |
| diff --git a/ui/ozone/public/native_pixmap_manager.h b/ui/ozone/public/native_pixmap_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b6afdad6a9af95dd364053560c740f5795886dc4 |
| --- /dev/null |
| +++ b/ui/ozone/public/native_pixmap_manager.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_ |
| +#define UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_ |
| + |
| +#include <vector> |
| + |
| +#include "ui/ozone/ozone_export.h" |
| +#include "ui/ozone/public/surface_factory_ozone.h" |
| + |
| +namespace ui { |
| + |
| +// The Ozone interface allows external implementations to hook into Chromium to |
| +// 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
|
| +class OZONE_EXPORT NativePixmapManager { |
| + public: |
| + static NativePixmapManager* GetInstance(); |
| + 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.
|
| + |
| + static scoped_ptr<NativePixmapManager> Create(); |
| + |
| + virtual ~NativePixmapManager(); |
| + |
| + struct Configuration { |
| + SurfaceFactoryOzone::BufferFormat format; |
| + SurfaceFactoryOzone::BufferUsage usage; |
| + }; |
| + |
| + // Gets supported format/usage configurations. |
| + virtual std::vector<Configuration> GetSupportedNativePixmapConfigurations() |
| + const = 0; |
| + |
| + protected: |
| + NativePixmapManager(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(NativePixmapManager); |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_ |