tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

NativeWindowD3D.h (1051B)


      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 // NativeWindowD3D.h: Defines NativeWindowD3D, a class for managing and performing operations on an
      8 // EGLNativeWindowType for the D3D renderers.
      9 
     10 #ifndef LIBANGLE_RENDERER_D3D_NATIVEWINDOWD3D_H_
     11 #define LIBANGLE_RENDERER_D3D_NATIVEWINDOWD3D_H_
     12 
     13 #include "common/debug.h"
     14 #include "common/platform.h"
     15 
     16 #include <EGL/eglplatform.h>
     17 #include "libANGLE/Config.h"
     18 
     19 namespace rx
     20 {
     21 class NativeWindowD3D : angle::NonCopyable
     22 {
     23  public:
     24    NativeWindowD3D(EGLNativeWindowType window);
     25    virtual ~NativeWindowD3D();
     26 
     27    virtual bool initialize()                     = 0;
     28    virtual bool getClientRect(LPRECT rect) const = 0;
     29    virtual bool isIconic() const                 = 0;
     30 
     31    inline EGLNativeWindowType getNativeWindow() const { return mWindow; }
     32 
     33  private:
     34    EGLNativeWindowType mWindow;
     35 };
     36 }  // namespace rx
     37 
     38 #endif  // LIBANGLE_RENDERER_D3D_NATIVEWINDOWD3D_H_