22 PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT)
const override;
34 this->initializeContext();
37EGLDisplay ANGLEWindowContext_win::onGetEGLDisplay(
38 PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT)
const {
45NativeWindowType ANGLEWindowContext_win::onGetNativeWindow()
const {
return fHWND; }
47int ANGLEWindowContext_win::onGetStencilBits()
const {
49 int pixelFormat = GetPixelFormat(fHDC);
50 PIXELFORMATDESCRIPTOR pfd;
51 DescribePixelFormat(fHDC, pixelFormat,
sizeof(pfd), &pfd);
52 return pfd.cStencilBits;
55SkISize ANGLEWindowContext_win::onGetSize()
const {
57 GetClientRect(fHWND, &
rect);
66 std::unique_ptr<WindowContext> ctx(
new ANGLEWindowContext_win(wnd,
params));
67 if (!ctx->isValid()) {
#define EGL_PLATFORM_ANGLE_TYPE_ANGLE
#define EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE
#define EGL_PLATFORM_ANGLE_ANGLE
virtual SkISize onGetSize() const =0
virtual int onGetStencilBits() const =0
virtual EGLDisplay onGetEGLDisplay(PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT) const =0
virtual NativeWindowType onGetNativeWindow() const =0
const EmbeddedViewParams * params
sk_sp< SkBlender > blender SkRect rect
std::unique_ptr< WindowContext > MakeANGLEForWin(HWND wnd, const DisplayParams ¶ms)
static constexpr SkISize Make(int32_t w, int32_t h)