Searched refs:bmp1 (Results 1 - 4 of 4) sorted by relevance

/external/chromium_org/ui/gfx/image/
H A Dimage_unittest_util.cc100 bool IsEqual(const SkBitmap& bmp1, const SkBitmap& bmp2) { argument
101 if (bmp1.isNull() && bmp2.isNull())
104 if (bmp1.width() != bmp2.width() ||
105 bmp1.height() != bmp2.height() ||
106 bmp1.colorType() != kN32_SkColorType ||
111 SkAutoLockPixels lock1(bmp1);
113 if (!bmp1.getPixels() || !bmp2.getPixels())
116 for (int y = 0; y < bmp1.height(); ++y) {
117 for (int x = 0; x < bmp1.width(); ++x) {
118 if (!ColorsClose(bmp1
[all...]
/external/chromium_org/third_party/skia/tests/
H A DPathUtilsTest.cpp80 const SkBitmap* bmp1, const SkBitmap* bmp2,
84 REPORTER_ASSERT( reporter, *bmp1->getAddr32(x,y) == *bmp2->getAddr32(x,y) );
79 test_bmp(skiatest::Reporter* reporter, const SkBitmap* bmp1, const SkBitmap* bmp2, int w, int h) argument
/external/skia/tests/
H A DPathUtilsTest.cpp80 const SkBitmap* bmp1, const SkBitmap* bmp2,
84 REPORTER_ASSERT( reporter, *bmp1->getAddr32(x,y) == *bmp2->getAddr32(x,y) );
79 test_bmp(skiatest::Reporter* reporter, const SkBitmap* bmp1, const SkBitmap* bmp2, int w, int h) argument
/external/chromium_org/content/common/gpu/client/
H A Dgl_helper_unittest.cc1145 bool IsEqual(const SkBitmap& bmp1, const SkBitmap& bmp2) { argument
1146 if (bmp1.isNull() && bmp2.isNull())
1148 if (bmp1.width() != bmp2.width() ||
1149 bmp1.height() != bmp2.height()) {
1153 if (bmp1.colorType() != bmp2.colorType())
1156 SkAutoLockPixels lock1(bmp1);
1158 if (!bmp1.getPixels() || !bmp2.getPixels()) {
1162 for (int y = 0; y < bmp1.height(); ++y) {
1163 for (int x = 0; x < bmp1.width(); ++x) {
1164 if (!ColorsClose(bmp1
[all...]

Completed in 118 milliseconds