Flutter Engine
The Flutter Engine
|
Protected Member Functions | |
SkCanvas * | onNewCanvas () override |
sk_sp< SkSurface > | onNewSurface (const SkImageInfo &info) override |
sk_sp< SkImage > | onNewImageSnapshot (const SkIRect *subsetOrNull) override |
void | onWritePixels (const SkPixmap &, int x, int y) override |
void | onDraw (SkCanvas *, SkScalar, SkScalar, const SkSamplingOptions &, const SkPaint *) override |
bool | onCopyOnWrite (ContentChangeMode) override |
sk_sp< const SkCapabilities > | onCapabilities () override |
SkImageInfo | imageInfo () const override |
Protected Member Functions inherited from SkSurface | |
SkSurface (int width, int height, const SkSurfaceProps *surfaceProps) | |
SkSurface (const SkImageInfo &imageInfo, const SkSurfaceProps *surfaceProps) | |
void | dirtyGenerationID () |
Definition at line 23 of file SkSurface_Null.cpp.
Definition at line 25 of file SkSurface_Null.cpp.
|
inlineoverrideprotectedvirtual |
Returns an ImageInfo describing the surface.
Reimplemented from SkSurface.
Definition at line 45 of file SkSurface_Null.cpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from SkSurface_Base.
Definition at line 41 of file SkSurface_Null.cpp.
|
inlineoverrideprotectedvirtual |
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 40 of file SkSurface_Null.cpp.
|
inlineoverrideprotectedvirtual |
Default implementation:
image = this->newImageSnapshot(); if (image) { image->draw(canvas, ...); image->unref(); }
Reimplemented from SkSurface_Base.
Definition at line 39 of file SkSurface_Null.cpp.
|
inlineoverrideprotectedvirtual |
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 31 of file SkSurface_Null.cpp.
|
inlineoverrideprotectedvirtual |
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 37 of file SkSurface_Null.cpp.
|
inlineoverrideprotectedvirtual |
Implements SkSurface_Base.
Definition at line 34 of file SkSurface_Null.cpp.
|
inlineoverridevirtual |