Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkSpecialImage_Raster (const SkIRect &subset, const SkBitmap &bm, const SkSurfaceProps &props) | |
bool | getROPixels (SkBitmap *bm) const |
SkISize | backingStoreDimensions () const override |
size_t | getSize () const override |
sk_sp< SkImage > | asImage () const override |
sk_sp< SkSpecialImage > | onMakeBackingStoreSubset (const SkIRect &subset) const override |
sk_sp< SkShader > | asShader (SkTileMode tileMode, const SkSamplingOptions &sampling, const SkMatrix &lm, bool strict) const override |
Public Member Functions inherited from SkSpecialImage | |
const SkSurfaceProps & | props () const |
int | width () const |
int | height () const |
SkISize | dimensions () const |
const SkIRect & | subset () const |
uint32_t | uniqueID () const |
virtual SkISize | backingStoreDimensions () const =0 |
virtual size_t | getSize () const =0 |
bool | isExactFit () const |
const SkColorInfo & | colorInfo () const |
SkAlphaType | alphaType () const |
SkColorType | colorType () const |
SkColorSpace * | getColorSpace () const |
void | draw (SkCanvas *canvas, SkScalar x, SkScalar y, const SkSamplingOptions &sampling, const SkPaint *paint, bool strict=true) const |
void | draw (SkCanvas *canvas, SkScalar x, SkScalar y) const |
sk_sp< SkSpecialImage > | makeSubset (const SkIRect &subset) const |
sk_sp< SkSpecialImage > | makePixelOutset () const |
virtual sk_sp< SkImage > | asImage () const =0 |
virtual sk_sp< SkShader > | asShader (SkTileMode, const SkSamplingOptions &, const SkMatrix &lm, bool strict=true) const |
virtual bool | isGaneshBacked () const |
virtual bool | isGraphiteBacked () const |
virtual GrRecordingContext * | getContext () const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Additional Inherited Members | |
Public Types inherited from SkSpecialImage | |
typedef void * | ReleaseContext |
typedef void(* | RasterReleaseProc) (void *pixels, ReleaseContext) |
Protected Member Functions inherited from SkSpecialImage | |
SkSpecialImage (const SkIRect &subset, uint32_t uniqueID, const SkColorInfo &, const SkSurfaceProps &) | |
virtual sk_sp< SkSpecialImage > | onMakeBackingStoreSubset (const SkIRect &subset) const =0 |
Definition at line 76 of file SkSpecialImage.cpp.
|
inline |
Definition at line 78 of file SkSpecialImage.cpp.
Create an SkImage view of the contents of this special image, pointing to the same underlying memory.
TODO: If SkImages::MakeFiltered were to return an SkShader that accounted for the subset constraint and offset, then this could move to a private virtual for use in draw() and asShader().
Implements SkSpecialImage.
Definition at line 93 of file SkSpecialImage.cpp.
|
inlineoverridevirtual |
Create an SkShader that samples the contents of this special image, applying tile mode for any sample that falls outside its internal subset.
'strict' defaults to true and applies shader-based tiling to the subset. If the subset is the same as the backing store dimensions, it is automatically degraded to non-strict (HW tiling and sampling). 'strict' can be set to false if it's known that the subset boundaries aren't visible AND the texel data in adjacent rows/cols is valid to be included by the given sampling options.
Reimplemented from SkSpecialImage.
Definition at line 100 of file SkSpecialImage.cpp.
|
inlineoverridevirtual |
|
inline |
Definition at line 85 of file SkSpecialImage.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements SkSpecialImage.
Definition at line 95 of file SkSpecialImage.cpp.