Hello, I managed to build Skia with ANGLE, I am using D3D11 to draw directly onto the Window HWND. I am not copying the pixels themselves and then setting them by StretchDIBits or SetDIBitsToDevice to the HDC, rather, I am using flushAndSubmit from the SkSurface, followed by eglSwapBuffers. However, when resizing the window, I get this weird glitchy error:
https://s12.gifyu.com/images/ezgif.com-video-to-gif235ce5b51949e0e4.gifI get a ghost/bounce effect. I don't have this effect when I am drawing with Raster.
The drawing code is very simple:
eglMakeCurrent(m_EGLDisplay, m_EGLSurface, m_EGLSurface, m_EGLContext);
m_EGLInterface->fFunctions.fClearColor(0.0f, 0.0f, 0.0f, 1.0f);
m_EGLInterface->fFunctions.fClear(GR_GL_DEPTH_BUFFER_BIT | GR_GL_STENCIL_BUFFER_BIT | GR_GL_COLOR_BUFFER_BIT);
SkRect rect = SkRect::MakeLTRB(0, 0, SkIntToScalar(m_Width), 100);
SkRRect circle = SkRRect::MakeRectXY(SkRect::MakeLTRB(200, 200, 400, 400), 100, 100);
SkPaint paint;
paint.setAntiAlias(true);
paint.setColor(SK_ColorRED);
m_WindowSurface->getCanvas()->clear(SK_ColorWHITE);
m_WindowSurface->getCanvas()->drawRect(rect, paint);
m_WindowSurface->getCanvas()->drawRRect(circle, paint);
m_WindowSurface->flushAndSubmit(true);
eglSwapBuffers(m_EGLDisplay, m_EGLSurface);
I can also upload the code somewhere for the setup, if I need to.