• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 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 // X11Pixmap.h: Definition of the implementation of OSPixmap for X11
8 
9 #ifndef UTIL_X11_PIXMAP_H_
10 #define UTIL_X11_PIXMAP_H_
11 
12 #include <X11/Xlib.h>
13 #include <X11/Xutil.h>
14 
15 #include "util/OSPixmap.h"
16 
17 class X11Pixmap : public OSPixmap
18 {
19   public:
20     X11Pixmap();
21     ~X11Pixmap() override;
22 
23     bool initialize(EGLNativeDisplayType display,
24                     size_t width,
25                     size_t height,
26                     int nativeVisual) override;
27 
28     EGLNativePixmapType getNativePixmap() const override;
29 
30   private:
31     Pixmap mPixmap;
32     Display *mDisplay;
33 };
34 
35 #endif  // UTIL_X11_PIXMAP_H_
36