|
| SkSpecialImage_Gpu (GrRecordingContext *context, const SkIRect &subset, uint32_t uniqueID, GrSurfaceProxyView view, const SkColorInfo &colorInfo, const SkSurfaceProps &props) |
|
size_t | getSize () const override |
|
bool | isGaneshBacked () const override |
|
GrRecordingContext * | getContext () const override |
|
GrSurfaceProxyView | view (GrRecordingContext *) const |
|
SkISize | backingStoreDimensions () const override |
|
sk_sp< SkSpecialImage > | onMakeBackingStoreSubset (const SkIRect &subset) const override |
|
sk_sp< SkImage > | asImage () const override |
|
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 |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
Definition at line 31 of file SkSpecialImage_Ganesh.cpp.
◆ SkSpecialImage_Gpu()
Definition at line 33 of file SkSpecialImage_Ganesh.cpp.
40 , fContext(context)
41 , fView(std::move(
view)) {}
GrSurfaceProxyView view(GrRecordingContext *) const
uint32_t uniqueID() const
SkSpecialImage(const SkIRect &subset, uint32_t uniqueID, const SkColorInfo &, const SkSurfaceProps &)
const SkIRect & subset() const
const SkSurfaceProps & props() const
const SkColorInfo & colorInfo() const
◆ asImage()
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 60 of file SkSpecialImage_Ganesh.cpp.
60 {
62 return sk_make_sp<SkImage_Ganesh>(
64 }
sk_sp< T > sk_ref_sp(T *obj)
GrSurfaceProxy * proxy() const
GrSurfaceProxyPriv priv()
◆ backingStoreDimensions()
SkISize SkSpecialImage_Gpu::backingStoreDimensions |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getContext()
◆ getSize()
size_t SkSpecialImage_Gpu::getSize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isGaneshBacked()
bool SkSpecialImage_Gpu::isGaneshBacked |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ onMakeBackingStoreSubset()
Implements SkSpecialImage.
Definition at line 55 of file SkSpecialImage_Ganesh.cpp.
55 {
58 }
sk_sp< SkSpecialImage > MakeDeferredFromGpu(GrRecordingContext *context, const SkIRect &subset, uint32_t uniqueID, GrSurfaceProxyView view, const GrColorInfo &colorInfo, const SkSurfaceProps &props)
◆ view()
The documentation for this class was generated from the following file: