/external/chromium_org/cc/test/ |
H A D | pixel_comparator.cc | 32 SkColor expected_color = expected_bmp.getColor(x, y); local 35 expected_color = SkColorSetA(expected_color, 0); 38 if (actual_color != expected_color) { 47 << SkColorGetR(expected_color) << "," 48 << SkColorGetG(expected_color) << "," 49 << SkColorGetB(expected_color) << "," 50 << SkColorGetA(expected_color) << ")"; 108 SkColor expected_color = expected_bmp.getColor(x, y); local 111 expected_color 199 SkColor expected_color = expected_bmp.getColor(x, y); local [all...] |
/external/chromium_org/ppapi/tests/ |
H A D | test_graphics_3d.h | 35 int x, int y, const uint8_t expected_color[4]); 36 std::string CheckPixelGL(int x, int y, const uint8_t expected_color[4]);
|
H A D | test_graphics_3d.cc | 146 int x, int y, const uint8_t expected_color[4]) { 151 ASSERT_EQ(pixel_color[0], expected_color[0]); 152 ASSERT_EQ(pixel_color[1], expected_color[1]); 153 ASSERT_EQ(pixel_color[2], expected_color[2]); 154 ASSERT_EQ(pixel_color[3], expected_color[3]); 159 int x, int y, const uint8_t expected_color[4]) { 163 ASSERT_EQ(pixel_color[0], expected_color[0]); 164 ASSERT_EQ(pixel_color[1], expected_color[1]); 165 ASSERT_EQ(pixel_color[2], expected_color[2]); 166 ASSERT_EQ(pixel_color[3], expected_color[ 144 CheckPixelPPAPI( pp::Graphics3D* context, int x, int y, const uint8_t expected_color[4]) argument 158 CheckPixelGL( int x, int y, const uint8_t expected_color[4]) argument [all...] |
/external/chromium_org/gpu/command_buffer/tests/ |
H A D | gl_program_unittests.cc | 123 uint8 expected_color[] = { 0, 0, 255, 255, }; local 124 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color)); 160 uint8 expected_color[] = { 0, 0, 255, 255, }; local 161 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color));
|
H A D | gl_copy_texture_CHROMIUM_unittest.cc | 371 uint8 expected_color[4] = { 255u, 255u, 0, 255u }; local 374 GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color); 383 GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color);
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | bitmap.py | 22 def IsEqual(self, expected_color, tolerance=0): 25 r_diff = abs(self.r - expected_color.r) 26 g_diff = abs(self.g - expected_color.g) 27 b_diff = abs(self.b - expected_color.b) 28 a_diff = abs(self.a - expected_color.a)
|
/external/chromium_org/content/browser/renderer_host/ |
H A D | render_widget_host_view_browsertest.cc | 518 SkColor expected_color = expected_bitmap.getColor(i, j); local 520 int expected_alpha = SkColorGetA(expected_color); 522 int expected_red = SkColorGetR(expected_color); 524 int expected_green = SkColorGetG(expected_color); 526 int expected_blue = SkColorGetB(expected_color); 529 << "expected_color: " << std::hex << expected_color 534 << "expected_color: " << std::hex << expected_color 539 << "expected_color [all...] |
/external/chromium_org/ash/desktop_background/ |
H A D | desktop_background_controller_unittest.cc | 156 // |expected_color|. (The center is used so small wallpaper images can be 158 bool ImageIsNearColor(gfx::ImageSkia image, SkColor expected_color) { argument 177 static_cast<int>(SkColorGetA(expected_color))) > kDiff || 179 static_cast<int>(SkColorGetR(expected_color))) > kDiff || 181 static_cast<int>(SkColorGetG(expected_color))) > kDiff || 183 static_cast<int>(SkColorGetB(expected_color))) > kDiff) { 184 LOG(ERROR) << "Expected color near 0x" << std::hex << expected_color
|
/external/chromium_org/content/browser/browser_plugin/ |
H A D | browser_plugin_host_browsertest.cc | 848 SkColor expected_color = expected_bitmap.getColor(i, j); local 850 int expected_alpha = SkColorGetA(expected_color); 852 int expected_red = SkColorGetR(expected_color); 854 int expected_green = SkColorGetG(expected_color); 856 int expected_blue = SkColorGetB(expected_color); 859 << "expected_color: " << std::hex << expected_color 864 << "expected_color: " << std::hex << expected_color 869 << "expected_color [all...] |
/external/chromium_org/ppapi/native_client/tests/ppapi_test_lib/ |
H A D | test_interface.cc | 222 uint32_t expected_color = FormatColor(image_desc.format, color); local 233 found_error = (pixel_color != expected_color);
|
/external/chromium_org/skia/ext/ |
H A D | image_operations_unittest.cc | 412 const uint32_t expected_color = AveragePixel(src, local 416 const bool close = ColorsClose(expected_color, actual_color); 422 x, y, expected_color, x, y, actual_color);
|
/external/chromium_org/ui/compositor/ |
H A D | layer_unittest.cc | 793 SkColor expected_color = y < blue_height ? SK_ColorBLUE : SK_ColorRED; local 794 EXPECT_EQ(expected_color, actual_color) 802 << SkColorGetR(expected_color) << "," 803 << SkColorGetG(expected_color) << "," 804 << SkColorGetB(expected_color) << "," 805 << SkColorGetA(expected_color) << ")";
|
/external/chromium_org/content/browser/renderer_host/media/ |
H A D | web_contents_video_capture_device_unittest.cc | 414 void WaitForNextColor(SkColor expected_color) { argument 417 wait_color_yuv_ = ConvertRgbToYuv(expected_color);
|
/external/chromium_org/ui/surface/ |
H A D | accelerated_surface_transformer_win_unittest.cc | 231 std::string expected_color = 235 EXPECT_EQ(expected_color, actual_color)
|
/external/chromium_org/ui/gfx/ |
H A D | render_text_unittest.cc | 135 std::vector<std::pair<size_t, SkColor> > expected_color; local 136 expected_color.push_back(std::pair<size_t, SkColor>(0, SK_ColorBLACK)); 137 expected_color.push_back(std::pair<size_t, SkColor>(1, SK_ColorRED)); 138 expected_color.push_back(std::pair<size_t, SkColor>(4, SK_ColorBLACK)); 139 EXPECT_TRUE(render_text->colors().EqualsForTesting(expected_color));
|