Upload upstream chromium 67.0.3396
[platform/framework/web/chromium-efl.git] / third_party / angle / util / OSPixmap.h
1 //
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.
5 //
6
7 // OSPixmap.h: Definition of an abstract pixmap class
8
9 #ifndef SAMPLE_UTIL_PIXMAP_H_
10 #define SAMPLE_UTIL_PIXMAP_H_
11
12 #include <stdlib.h>
13
14 #include <export.h>
15 #include <EGL/egl.h>
16 #include <EGL/eglext.h>
17
18 #include "Event.h"
19
20 class ANGLE_EXPORT OSPixmap
21 {
22   public:
23     OSPixmap() {}
24     virtual ~OSPixmap() {}
25
26     virtual bool initialize(EGLNativeDisplayType display, size_t width, size_t height, int depth) = 0;
27
28     virtual EGLNativePixmapType getNativePixmap() const = 0;
29 };
30
31 ANGLE_EXPORT OSPixmap *CreateOSPixmap();
32
33 #endif // SAMPLE_UTIL_PIXMAP_H_