Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | List of all members
SkShaderBlitter Class Reference

#include <SkCoreBlitters.h>

Inheritance diagram for SkShaderBlitter:
SkRasterBlitter SkBlitter SkARGB32_Shader_Blitter

Public Member Functions

 SkShaderBlitter (const SkPixmap &device, const SkPaint &paint, SkShaderBase::Context *shaderContext)
 
 ~SkShaderBlitter () override
 
- Public Member Functions inherited from SkRasterBlitter
 SkRasterBlitter (const SkPixmap &device)
 
- Public Member Functions inherited from SkBlitter
virtual ~SkBlitter ()
 
virtual void blitH (int x, int y, int width)=0
 Blit a horizontal run of one or more pixels. More...
 
virtual void blitAntiH (int x, int y, const SkAlpha antialias[], const int16_t runs[])=0
 
virtual void blitV (int x, int y, int height, SkAlpha alpha)
 Blit a vertical run of pixels with a constant alpha value. More...
 
virtual void blitRect (int x, int y, int width, int height)
 Blit a solid rectangle one or more pixels wide. More...
 
virtual void blitAntiRect (int x, int y, int width, int height, SkAlpha leftAlpha, SkAlpha rightAlpha)
 
void blitFatAntiRect (const SkRect &rect)
 
virtual void blitMask (const SkMask &, const SkIRect &clip)
 
virtual void blitAntiH2 (int x, int y, U8CPU a0, U8CPU a1)
 
virtual void blitAntiV2 (int x, int y, U8CPU a0, U8CPU a1)
 
virtual bool isNullBlitter () const
 
virtual int requestRowsPreserved () const
 
virtual void * allocBlitMemory (size_t sz)
 
void blitRectRegion (const SkIRect &rect, const SkRegion &clip)
 
void blitRegion (const SkRegion &clip)
 

Protected Attributes

sk_sp< SkShaderfShader
 
SkShaderBase::ContextfShaderContext
 
- Protected Attributes inherited from SkRasterBlitter
const SkPixmap fDevice
 
- Protected Attributes inherited from SkBlitter
SkAutoMalloc fBlitMemory
 

Additional Inherited Members

- Static Public Member Functions inherited from SkBlitter
static bool UseLegacyBlitter (const SkPixmap &, const SkPaint &, const SkMatrix &)
 
static SkBlitterChoose (const SkPixmap &dst, const SkMatrix &ctm, const SkPaint &paint, SkArenaAlloc *, bool drawCoverage, sk_sp< SkShader > clipShader, const SkSurfaceProps &props)
 
static SkBlitterChooseSprite (const SkPixmap &dst, const SkPaint &, const SkPixmap &src, int left, int top, SkArenaAlloc *, sk_sp< SkShader > clipShader)
 

Detailed Description

Definition at line 42 of file SkCoreBlitters.h.

Constructor & Destructor Documentation

◆ SkShaderBlitter()

SkShaderBlitter::SkShaderBlitter ( const SkPixmap device,
const SkPaint paint,
SkShaderBase::Context shaderContext 
)

The storage for shaderContext is owned by the caller, but the object itself is not. The blitter only ensures that the storage always holds a live object, but it may exchange that object.

Definition at line 790 of file SkBlitter.cpp.

792 : INHERITED(device)
793 , fShader(paint.refShader())
794 , fShaderContext(shaderContext) {
797}
#define SkASSERT(cond)
Definition: SkAssert.h:116
SkShaderBase::Context * fShaderContext
sk_sp< SkShader > fShader
const Paint & paint
Definition: color_source.cc:38
VkDevice device
Definition: main.cc:53

◆ ~SkShaderBlitter()

SkShaderBlitter::~SkShaderBlitter ( )
overridedefault

Member Data Documentation

◆ fShader

sk_sp<SkShader> SkShaderBlitter::fShader
protected

Definition at line 54 of file SkCoreBlitters.h.

◆ fShaderContext

SkShaderBase::Context* SkShaderBlitter::fShaderContext
protected

Definition at line 55 of file SkCoreBlitters.h.


The documentation for this class was generated from the following files: