Home | History | Annotate | Download | only in samplecode

Lines Matching refs:MARGIN

60 static bool check_bitmap_margin(const SkBitmap& bm, int margin) {
62 for (int i = 0; i < margin; i++) {
74 int right = bm.width() - margin + i;
84 #define MARGIN 10
94 if (!check_bitmap_margin(bm, MARGIN)) {
224 WIDTH + MARGIN*2,
225 HEIGHT + MARGIN*2);
227 // this will erase our margin, which we want to always stay 0
232 bm2.setPixels(bm.getAddr32(MARGIN, MARGIN));