Home | History | Annotate | Download | only in samplecode

Lines Matching refs:margin

64 static bool check_bitmap_margin(const SkBitmap& bm, int margin) {
66 for (int i = 0; i < margin; i++) {
78 int right = bm.width() - margin + i;
89 #define MARGIN 10
99 if (!check_bitmap_margin(bm, MARGIN)) {
228 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2);
229 // this will erase our margin, which we want to always stay 0
233 bm.getAddr32(MARGIN, MARGIN), bm.rowBytes());