Flutter Engine
The Flutter Engine
|
#include <Surface_Graphite.h>
Static Public Member Functions | |
static sk_sp< Surface > | Make (Recorder *recorder, const SkImageInfo &info, Budgeted budgeted, Mipmapped mipmapped=Mipmapped::kNo, SkBackingFit backingFit=SkBackingFit::kExact, const SkSurfaceProps *props=nullptr) |
static sk_sp< Surface > | MakeScratch (Recorder *recorder, const SkImageInfo &info, Budgeted budgeted=Budgeted::kYes, Mipmapped mipmapped=Mipmapped::kNo, SkBackingFit backingFit=SkBackingFit::kApprox) |
Friends | |
void | Flush (SkSurface *) |
Definition at line 26 of file Surface_Graphite.h.
Definition at line 28 of file Surface_Graphite.cpp.
|
override |
Definition at line 33 of file Surface_Graphite.cpp.
Definition at line 65 of file Surface_Graphite.cpp.
TextureProxy * Surface::backingTextureProxy | ( | ) | const |
Definition at line 117 of file Surface_Graphite.cpp.
|
overridevirtual |
Returns an ImageInfo describing the surface.
Reimplemented from SkSurface.
Definition at line 40 of file Surface_Graphite.cpp.
|
inlinestatic |
Definition at line 29 of file Surface_Graphite.h.
Definition at line 73 of file Surface_Graphite.cpp.
|
inlinestatic |
Definition at line 42 of file Surface_Graphite.h.
|
overridevirtual |
Default implementation does a rescale/read and then calls the callback.
Reimplemented from SkSurface_Base.
Definition at line 90 of file Surface_Graphite.cpp.
|
overridevirtual |
Default implementation does a rescale/read/yuv conversion and then calls the callback.
Reimplemented from SkSurface_Base.
Definition at line 100 of file Surface_Graphite.cpp.
|
overridevirtual |
Reimplemented from SkSurface_Base.
Definition at line 113 of file Surface_Graphite.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 88 of file Surface_Graphite.cpp.
|
overridevirtual |
Reimplemented from SkSurface_Base.
Definition at line 44 of file Surface_Graphite.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 50 of file Surface_Graphite.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 56 of file Surface_Graphite.cpp.
|
overridevirtual |
Implements SkSurface_Base.
Definition at line 52 of file Surface_Graphite.cpp.
TextureProxyView Surface::readSurfaceView | ( | ) | const |
Definition at line 46 of file Surface_Graphite.cpp.
|
inlineoverridevirtual |
|
friend |
Definition at line 25 of file GpuTools.h.