1 // 2 // Copyright 2016 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 // NativeWindow9.h: Defines NativeWindow9, a class for managing and 8 // performing operations on an EGLNativeWindowType for the D3D9 renderer. 9 10 #ifndef LIBANGLE_RENDERER_D3D_D3D9_NATIVEWINDOW9_H_ 11 #define LIBANGLE_RENDERER_D3D_D3D9_NATIVEWINDOW9_H_ 12 13 #include "common/debug.h" 14 #include "common/platform.h" 15 16 #include "libANGLE/renderer/d3d/NativeWindowD3D.h" 17 18 namespace rx 19 { 20 21 class NativeWindow9 : public NativeWindowD3D 22 { 23 public: 24 explicit NativeWindow9(EGLNativeWindowType window); 25 26 bool initialize() override; 27 bool getClientRect(LPRECT rect) const override; 28 bool isIconic() const override; 29 30 static bool IsValidNativeWindow(EGLNativeWindowType window); 31 }; 32 33 } // namespace rx 34 35 #endif // LIBANGLE_RENDERER_D3D_D3D9_NATIVEWINDOW9_H_ 36