• 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 // Win32Pixmap.h: Definition of the implementation of OSPixmap for Win32 (Windows)
8 
9 #ifndef UTIL_WIN32_PIXMAP_H_
10 #define UTIL_WIN32_PIXMAP_H_
11 
12 #include <windows.h>
13 
14 #include "util/OSPixmap.h"
15 
16 class Win32Pixmap : public OSPixmap
17 {
18   public:
19     Win32Pixmap();
20     ~Win32Pixmap() override;
21 
22     bool initialize(EGLNativeDisplayType display, size_t width, size_t height, int depth) override;
23 
24     EGLNativePixmapType getNativePixmap() const override;
25 
26   private:
27     HBITMAP mBitmap;
28 };
29 
30 #endif  // UTIL_WIN32_PIXMAP_H_
31