2 // Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
7 // OSPixmap.h: Definition of an abstract pixmap class
9 #ifndef SAMPLE_UTIL_PIXMAP_H_
10 #define SAMPLE_UTIL_PIXMAP_H_
16 #include <EGL/eglext.h>
20 class ANGLE_EXPORT OSPixmap
24 virtual ~OSPixmap() {}
26 virtual bool initialize(EGLNativeDisplayType display, size_t width, size_t height, int depth) = 0;
28 virtual EGLNativePixmapType getNativePixmap() const = 0;
31 ANGLE_EXPORT OSPixmap *CreateOSPixmap();
33 #endif // SAMPLE_UTIL_PIXMAP_H_