#include <Surface.h>
Definition at line 46 of file Surface.h.
◆ WindowSurface()
Definition at line 17 of file Surface.cpp.
18 : fWindow(win)
19 , fWindowContext(std::move(wctx))
20{
23
24 fSurface = fWindowContext->getBackbufferSurface();
25}
sk_sp< SkSurface > fSurface
◆ flushAndSubmit()
void WindowSurface::flushAndSubmit |
( |
| ) |
|
|
overrideprivatevirtual |
Implements Surface.
Definition at line 39 of file Surface.cpp.
39 {
41 fWindowContext->swapBuffers();
42 fSurface = fWindowContext->getBackbufferSurface();
43}
SK_API void FlushAndSubmit(sk_sp< SkSurface >)
◆ getCanvas()
◆ release()
void WindowSurface::release |
( |
JNIEnv * |
env | ) |
|
|
overrideprivatevirtual |
Implements Surface.
Definition at line 27 of file Surface.cpp.
27 {
28 fWindowContext.reset();
29 ANativeWindow_release(fWindow);
30}
The documentation for this class was generated from the following files: