Flutter Engine
The Flutter Engine
|
#include <SkSurface_Ganesh.h>
Definition at line 40 of file SkSurface_Ganesh.h.
SkSurface_Ganesh::SkSurface_Ganesh | ( | sk_sp< skgpu::ganesh::Device > | device | ) |
Definition at line 65 of file SkSurface_Ganesh.cpp.
|
override |
Definition at line 71 of file SkSurface_Ganesh.cpp.
bool SkSurface_Ganesh::draw | ( | sk_sp< const GrDeferredDisplayList > | ddl | ) |
Definition at line 406 of file SkSurface_Ganesh.cpp.
GrBackendRenderTarget SkSurface_Ganesh::getBackendRenderTarget | ( | BackendHandleAccess | access | ) |
Definition at line 123 of file SkSurface_Ganesh.cpp.
GrBackendTexture SkSurface_Ganesh::getBackendTexture | ( | BackendHandleAccess | access | ) |
Definition at line 111 of file SkSurface_Ganesh.cpp.
skgpu::ganesh::Device * SkSurface_Ganesh::getDevice | ( | ) |
Definition at line 81 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Returns an ImageInfo describing the surface.
Reimplemented from SkSurface.
Definition at line 83 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Default implementation does a rescale/read and then calls the callback.
Reimplemented from SkSurface_Base.
Definition at line 195 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Default implementation does a rescale/read/yuv conversion and then calls the callback.
Reimplemented from SkSurface_Base.
Definition at line 204 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Reimplemented from SkSurface_Base.
Definition at line 422 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Reimplemented from SkSurface_Base.
Definition at line 256 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
If the surface is about to change, we call this so that our subclass can optionally fork their backend (copy-on-write) in case it was being shared with the cachedImage.
Returns false if the backing cannot be un-shared.
Implements SkSurface_Base.
Definition at line 227 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Called as a performance hint when the Surface is allowed to make it's contents undefined.
Reimplemented from SkSurface_Base.
Definition at line 246 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Default implementation:
image = this->newImageSnapshot(); if (image) { image->draw(canvas, ...); image->unref(); }
Reimplemented from SkSurface_Base.
Definition at line 303 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Reimplemented from SkSurface_Base.
Definition at line 77 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Reimplemented from SkSurface_Base.
Definition at line 338 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Allocate a canvas that will draw into this surface. We will cache this canvas, to return the same object to the caller multiple times. We take ownership, and will call unref() on the canvas when we go out of scope.
Implements SkSurface_Base.
Definition at line 132 of file SkSurface_Ganesh.cpp.
Allocate an SkImage that represents the current contents of the surface. This needs to be able to outlive the surface itself (if need be), and must faithfully represent the current contents, even if the surface is changed after this called (e.g. it is drawn to via its canvas).
If a subset is specified, the the impl must make a copy, rather than try to wait on copy-on-write.
Reimplemented from SkSurface_Base.
Definition at line 147 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Implements SkSurface_Base.
Definition at line 134 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
Caused the current backend 3D API to wait on the passed in semaphores before executing new commands on the gpu. Any previously submitting commands will not be blocked by these semaphores.
Reimplemented from SkSurface_Base.
Definition at line 250 of file SkSurface_Ganesh.cpp.
|
overridevirtual |
If the surface was made via MakeFromBackendTexture then it's backing texture may be substituted with a different texture. The contents of the previous backing texture are copied into the new texture. SkCanvas state is preserved. The original sample count is used. The GrBackendFormat and dimensions of replacement texture must match that of the original.
Upon success textureReleaseProc is called when it is safe to delete the texture in the backend API (accounting only for use of the texture by this surface). If SkSurface creation fails textureReleaseProc is called before this function returns.
backendTexture | the new backing texture for the surface |
mode | Retain or discard current Content |
TextureReleaseProc | function called when texture can be released |
ReleaseContext | state passed to textureReleaseProc |
Implements SkSurface.
Definition at line 468 of file SkSurface_Ganesh.cpp.
void SkSurface_Ganesh::resolveMSAA | ( | ) |
Definition at line 248 of file SkSurface_Ganesh.cpp.
|
inlineoverridevirtual |