Home | History | Annotate | Download | only in samplecode

Lines Matching refs:margin

51 static bool check_bitmap_margin(const SkBitmap& bm, int margin) {
53 for (int i = 0; i < margin; i++) {
65 int right = bm.width() - margin + i;
76 #define MARGIN 10
86 if (!check_bitmap_margin(bm, MARGIN)) {
208 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2);
209 // this will erase our margin, which we want to always stay 0
213 bm.getAddr32(MARGIN, MARGIN), bm.rowBytes());