Definition at line 21 of file DisplacementBench.cpp.
◆ DisplacementBaseBench()
DisplacementBaseBench::DisplacementBaseBench |
( |
bool |
small | ) |
|
|
inline |
◆ drawClippedBitmap()
Definition at line 72 of file DisplacementBench.cpp.
72 {
77 }
void clipIRect(const SkIRect &irect, SkClipOp op=SkClipOp::kIntersect)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
SkSamplingOptions(SkFilterMode::kLinear))
constexpr SkIRect makeOffset(int32_t dx, int32_t dy) const
◆ isSmall()
bool DisplacementBaseBench::isSmall |
( |
| ) |
const |
|
inlineprotected |
◆ makeBitmap()
void DisplacementBaseBench::makeBitmap |
( |
| ) |
|
|
inlineprotected |
Definition at line 34 of file DisplacementBench.cpp.
34 {
39 paint.setColor(0xFF884422);
40
44 fImage = surf->makeImageSnapshot();
45 }
#define FILTER_WIDTH_SMALL
#define FILTER_WIDTH_LARGE
#define FILTER_HEIGHT_SMALL
#define FILTER_HEIGHT_LARGE
@ kUTF8
uses bytes to represent UTF-8 or ASCII
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
font
Font Metadata and Metrics.
static SkImageInfo MakeN32Premul(int width, int height)
◆ makeCheckerboard()
void DisplacementBaseBench::makeCheckerboard |
( |
| ) |
|
|
inlineprotected |
Definition at line 47 of file DisplacementBench.cpp.
47 {
52 canvas->
clear(0x00000000);
57 for (
int y = 0;
y <
h;
y += 16) {
58 for (
int x = 0;
x <
w;
x += 16) {
66 }
67 }
68
70 }
sk_sp< SkImage > fCheckerboard
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void setColor(SkColor color)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
◆ onDelayedSetup()
void DisplacementBaseBench::onDelayedSetup |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ fCheckerboard
◆ fImage
The documentation for this class was generated from the following file: