1*8975f5c5SAndroid Build Coastguard Worker // 2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2015 The ANGLE Project Authors. All rights reserved. 3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file. 5*8975f5c5SAndroid Build Coastguard Worker // 6*8975f5c5SAndroid Build Coastguard Worker 7*8975f5c5SAndroid Build Coastguard Worker // Win32Pixmap.h: Definition of the implementation of OSPixmap for Win32 (Windows) 8*8975f5c5SAndroid Build Coastguard Worker 9*8975f5c5SAndroid Build Coastguard Worker #ifndef UTIL_WIN32_PIXMAP_H_ 10*8975f5c5SAndroid Build Coastguard Worker #define UTIL_WIN32_PIXMAP_H_ 11*8975f5c5SAndroid Build Coastguard Worker 12*8975f5c5SAndroid Build Coastguard Worker #include <windows.h> 13*8975f5c5SAndroid Build Coastguard Worker 14*8975f5c5SAndroid Build Coastguard Worker #include "util/OSPixmap.h" 15*8975f5c5SAndroid Build Coastguard Worker 16*8975f5c5SAndroid Build Coastguard Worker class Win32Pixmap : public OSPixmap 17*8975f5c5SAndroid Build Coastguard Worker { 18*8975f5c5SAndroid Build Coastguard Worker public: 19*8975f5c5SAndroid Build Coastguard Worker Win32Pixmap(); 20*8975f5c5SAndroid Build Coastguard Worker ~Win32Pixmap() override; 21*8975f5c5SAndroid Build Coastguard Worker 22*8975f5c5SAndroid Build Coastguard Worker bool initialize(EGLNativeDisplayType display, size_t width, size_t height, int depth) override; 23*8975f5c5SAndroid Build Coastguard Worker 24*8975f5c5SAndroid Build Coastguard Worker EGLNativePixmapType getNativePixmap() const override; 25*8975f5c5SAndroid Build Coastguard Worker 26*8975f5c5SAndroid Build Coastguard Worker private: 27*8975f5c5SAndroid Build Coastguard Worker HBITMAP mBitmap; 28*8975f5c5SAndroid Build Coastguard Worker }; 29*8975f5c5SAndroid Build Coastguard Worker 30*8975f5c5SAndroid Build Coastguard Worker #endif // UTIL_WIN32_PIXMAP_H_ 31