| Index: ui/ozone/public/native_pixmap.h
|
| diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4a22a9169864111834a3cbb65766b7597d3fb690
|
| --- /dev/null
|
| +++ b/ui/ozone/public/native_pixmap.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 2013 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_H_
|
| +#define UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +
|
| +namespace ui {
|
| +
|
| +// This represents a buffer that can be directly imported via GL for
|
| +// rendering, or exported via dma-buf fds.
|
| +class NativePixmap : public base::RefCounted<NativePixmap> {
|
| + public:
|
| + NativePixmap() {}
|
| +
|
| + virtual void* /* EGLClientBuffer */ GetEGLClientBuffer() = 0;
|
| + virtual int GetDmaBufFd() = 0;
|
| +
|
| + protected:
|
| + virtual ~NativePixmap() {}
|
| +
|
| + friend class base::RefCounted<NativePixmap>;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(NativePixmap);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_
|
|
|