Flutter Engine
The Flutter Engine
|
#include <SkSurface_Raster.h>
Definition at line 30 of file SkSurface_Raster.h.
SkSurface_Raster::SkSurface_Raster | ( | const SkImageInfo & | info, |
void * | pixels, | ||
size_t | rb, | ||
void(*)(void *pixels, void *context) | releaseProc, | ||
void * | context, | ||
const SkSurfaceProps * | props | ||
) |
Definition at line 58 of file SkSurface_Raster.cpp.
SkSurface_Raster::SkSurface_Raster | ( | const SkImageInfo & | info, |
sk_sp< SkPixelRef > | pr, | ||
const SkSurfaceProps * | props | ||
) |
Definition at line 67 of file SkSurface_Raster.cpp.
|
inlineoverridevirtual |
Returns an ImageInfo describing the surface.
Reimplemented from SkSurface.
Definition at line 38 of file SkSurface_Raster.h.
|
overridevirtual |
Reimplemented from SkSurface_Base.
Definition at line 154 of file SkSurface_Raster.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 124 of file SkSurface_Raster.cpp.
|
overridevirtual |
Default implementation:
image = this->newImageSnapshot(); if (image) { image->draw(canvas, ...); image->unref(); }
Reimplemented from SkSurface_Base.
Definition at line 82 of file SkSurface_Raster.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 76 of file SkSurface_Raster.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 87 of file SkSurface_Raster.cpp.
|
overridevirtual |
Implements SkSurface_Base.
Definition at line 78 of file SkSurface_Raster.cpp.
|
overridevirtual |
Signal the surface to remind its backing store that it's mutable again. Called only when we didn't copy-on-write; we assume the copies start mutable.
Reimplemented from SkSurface_Base.
Definition at line 117 of file SkSurface_Raster.cpp.
Implements SkSurface_Base.
Definition at line 113 of file SkSurface_Raster.cpp.
|
inlineoverridevirtual |