Lines Matching refs:pixel
177 GLubyte pixel[4];
179 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);
182 msg += String8::format("error reading pixel: %#x", err);
188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
189 msg += String8::format("r(%d isn't %d)", pixel[0], r);
191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
195 msg += String8::format("g(%d isn't %d)", pixel[1], g);
197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
201 msg += String8::format("b(%d isn't %d)", pixel[2], b);
203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
207 msg += String8::format("a(%d isn't %d)", pixel[3], a);