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

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

Issue 365193003: Change NativeBufferOzone to be an object and move the overlay calls to the surface object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2013 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_H_
6 #define UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_
7
8 #include "base/memory/ref_counted.h"
9
10 namespace ui {
11
12 // This represents a buffer that can be directly imported via GL for
13 // rendering, or exported via dma-buf fds.
14 class NativePixmap : public base::RefCounted<NativePixmap> {
15 public:
16 NativePixmap() {}
17
18 virtual void* /* EGLClientBuffer */ GetEGLClientBuffer() = 0;
19 virtual int GetDmaBufFd() = 0;
20
21 protected:
22 virtual ~NativePixmap() {}
23
24 friend class base::RefCounted<NativePixmap>;
25
26 DISALLOW_COPY_AND_ASSIGN(NativePixmap);
27 };
28
29 } // namespace ui
30
31 #endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | ui/ozone/public/surface_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698