Lines Matching refs:bm
84 // Utility function to read the value of a given pixel in bm. All
86 static uint32_t getPixel(int x, int y, const SkBitmap& bm) {
90 SkAutoLockPixels lock(bm);
91 const void* rawAddr = bm.getAddr(x,y);
93 switch (bm.bytesPerPixel()) {
111 // Utility function to set value of any pixel in bm.
112 // bm.getConfig() specifies what format 'val' must be
114 static void setPixel(int x, int y, uint32_t val, SkBitmap& bm) {
117 SkAutoLockPixels lock(bm);
118 void* rawAddr = bm.getAddr(x,y);
120 switch (bm.bytesPerPixel()) {
180 static void writeCoordPixels(SkBitmap& bm, const Coordinates& coords) {
182 setPixel(coords[i]->fX, coords[i]->fY, i, bm);