58 {
60 const int bitWidth = 32;
61 const int bitHeight = 32;
62 const float pathMin = 1;
63 const float pathMax = (
float) (bitHeight - 2);
65 if (
bits.width() == 0) {
66 bits.allocN32Pixels(bitWidth, bitHeight);
67 }
70 for (int index = 0; index < 100; ++index) {
73 for (int cIndex = 0; cIndex < contourCount; ++cIndex) {
76 for (int lIndex = 0; lIndex < lineCount; ++lIndex) {
79 } else {
82 }
83 }
86 }
87 }
94 SkIRect bitsWritten = {31, 31, 0, 0};
95 for (
int y = 0;
y < bitHeight; ++
y) {
96 uint32_t* addr1 =
data->fBitmap->getAddr32(0,
y);
97 bool lineWritten = false;
98 for (
int x = 0;
x < bitWidth; ++
x) {
99 if (addr1[
x] == (uint32_t) -1) {
100 continue;
101 }
102 lineWritten = true;
105 }
106 if (!lineWritten) {
107 continue;
108 }
111 }
116 }
117 }
118}
constexpr SkColor SK_ColorWHITE
static float max(float r, float g, float b)
static float min(float r, float g, float b)
int32_t fBottom
larger y-axis bounds
int32_t fTop
smaller y-axis bounds
int32_t fLeft
smaller x-axis bounds
bool contains(int32_t x, int32_t y) const
int32_t fRight
larger x-axis bounds
bool contains(SkScalar x, SkScalar y) const
void roundOut(SkIRect *dst) const