Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Vertish_SkAntiHairBlitter Class Reference
Inheritance diagram for Vertish_SkAntiHairBlitter:
SkAntiHairBlitter

Public Member Functions

SkFixed drawCap (int y, SkFixed fx, SkFixed dx, int mod64) override
 
SkFixed drawLine (int y, int stopy, SkFixed fx, SkFixed dx) override
 
- Public Member Functions inherited from SkAntiHairBlitter
 SkAntiHairBlitter ()
 
virtual ~SkAntiHairBlitter ()
 
SkBlittergetBlitter () const
 
void setup (SkBlitter *blitter)
 

Detailed Description

Definition at line 241 of file SkScan_Antihair.cpp.

Member Function Documentation

◆ drawCap()

SkFixed Vertish_SkAntiHairBlitter::drawCap ( int  y,
SkFixed  fx,
SkFixed  dx,
int  mod64 
)
inlineoverridevirtual

Implements SkAntiHairBlitter.

Definition at line 243 of file SkScan_Antihair.cpp.

243 {
244 fx += SK_Fixed1/2;
245
246 int x = fx >> 16;
247 uint8_t a = (uint8_t)((fx >> 8) & 0xFF);
248 this->getBlitter()->blitAntiH2(x - 1, y,
249 SmallDot6Scale(255 - a, mod64), SmallDot6Scale(a, mod64));
250
251 return fx + dx - SK_Fixed1/2;
252 }
#define SK_Fixed1
Definition SkFixed.h:26
static int SmallDot6Scale(int value, int dot6)
SkBlitter * getBlitter() const
virtual void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1)
Definition SkBlitter.h:80
struct MyStruct a[10]
double y
double x
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
Definition SkRecords.h:208

◆ drawLine()

SkFixed Vertish_SkAntiHairBlitter::drawLine ( int  y,
int  stopy,
SkFixed  fx,
SkFixed  dx 
)
inlineoverridevirtual

Implements SkAntiHairBlitter.

Definition at line 254 of file SkScan_Antihair.cpp.

254 {
255 SkASSERT(y < stopy);
256 fx += SK_Fixed1/2;
257 do {
258 int x = fx >> 16;
259 uint8_t a = (uint8_t)((fx >> 8) & 0xFF);
260 this->getBlitter()->blitAntiH2(x - 1, y, 255 - a, a);
261 fx += dx;
262 } while (++y < stopy);
263
264 return fx - SK_Fixed1/2;
265 }
#define SkASSERT(cond)
Definition SkAssert.h:116

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