90 {
91
92 const int kContentSize = contentRect.
width();
94
95 {
99
101
102 const int halfM1 = kContentSize/2 - 1;
103
104
107
110
111
116 }
117
119
120 {
123
126
128
130
131 const char*
src =
static_cast<const char*
>(contentBM.
getPixels());
132 size_t srcRB = contentBM.
rowBytes();
134
137 for (
int y = 0;
y < contentBM.
height(); ++
y) {
138 memcpy(dst, src, srcRB);
141 }
142 } else {
146 }
147
150 }
151
152 return bigBM;
153}
@ kBottomLeft_GrSurfaceOrigin
@ kOpaque_SkAlphaType
pixel is opaque
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
static void SkRectMemcpy(void *dst, size_t dstRB, const void *src, size_t srcRB, size_t trimRowBytes, int rowCount)
void allocPixels(const SkImageInfo &info, size_t rowBytes)
void eraseArea(const SkIRect &area, SkColor c) const
void * getAddr(int x, int y) const
bool setAlphaType(SkAlphaType alphaType)
void eraseColor(SkColor4f) const
int32_t fTop
smaller y-axis bounds
constexpr int32_t width() const
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
int32_t fLeft
smaller x-axis bounds
constexpr int32_t height() const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)