Chromium Code Reviews| Index: content/common/gpu/client/gl_helper_unittest.cc |
| diff --git a/content/common/gpu/client/gl_helper_unittest.cc b/content/common/gpu/client/gl_helper_unittest.cc |
| index 9e7af8ca44e808cf0bafda99aa12bc4a66cb4cb5..7c7f23ce04c3c2acc2b855a8fce6f5f3ce317a17 100644 |
| --- a/content/common/gpu/client/gl_helper_unittest.cc |
| +++ b/content/common/gpu/client/gl_helper_unittest.cc |
| @@ -856,9 +856,9 @@ class GLHelperTest : public testing::Test { |
| for (int x = 0; x < w; ++x) { |
| bool on_grid = (y_on_grid || ((x % grid_pitch) < grid_width)); |
| - if (bmp.getConfig() == SkBitmap::kARGB_8888_Config) { |
| + if (bmp.config() == SkBitmap::kARGB_8888_Config) { |
|
reed1
2014/05/07 18:06:22
Can we compare using colortypes instead of configs
|
| *bmp.getAddr32(x, y) = (on_grid ? grid_color : background_color); |
| - } else if (bmp.getConfig() == SkBitmap::kRGB_565_Config) { |
| + } else if (bmp.config() == SkBitmap::kRGB_565_Config) { |
| *bmp.getAddr16(x, y) = (on_grid ? grid_color : background_color); |
| } |
| } |
| @@ -880,9 +880,9 @@ class GLHelperTest : public testing::Test { |
| bool x_bit = (((x / rect_w) & 0x1) == 0); |
| bool use_color2 = (x_bit != y_bit); // xor |
| - if (bmp.getConfig() == SkBitmap::kARGB_8888_Config) { |
| + if (bmp.config() == SkBitmap::kARGB_8888_Config) { |
| *bmp.getAddr32(x, y) = (use_color2 ? color2 : color1); |
| - } else if (bmp.getConfig() == SkBitmap::kRGB_565_Config) { |
| + } else if (bmp.config() == SkBitmap::kRGB_565_Config) { |
| *bmp.getAddr16(x, y) = (use_color2 ? color2 : color1); |
| } |
| } |
| @@ -931,7 +931,7 @@ class GLHelperTest : public testing::Test { |
| LOG(ERROR) << "Bitmap geometry check failure"; |
| return false; |
| } |
| - if (bmp1.getConfig() != bmp2.getConfig()) |
| + if (bmp1.config() != bmp2.config()) |
| return false; |
| SkAutoLockPixels lock1(bmp1); |
| @@ -944,7 +944,7 @@ class GLHelperTest : public testing::Test { |
| for (int x = 0; x < bmp1.width(); ++x) { |
| if (!ColorsClose(bmp1.getColor(x,y), |
| bmp2.getColor(x,y), |
| - bmp1.getConfig())) { |
| + bmp1.config())) { |
| LOG(ERROR) << "Bitmap color comparision failure"; |
| return false; |
| } |