Index: ppapi/tests/power_saver_test_plugin.cc |
diff --git a/ppapi/tests/power_saver_test_plugin.cc b/ppapi/tests/power_saver_test_plugin.cc |
index 521fafa8a960029542d160834abbbf9192a0ffdd..a3d85d9a59f4b5f34b46221e4b4e8886bd0d0f5d 100644 |
--- a/ppapi/tests/power_saver_test_plugin.cc |
+++ b/ppapi/tests/power_saver_test_plugin.cc |
@@ -57,10 +57,13 @@ class PowerSaverTestInstance : public pp::Instance { |
if (image.is_null()) |
return; |
- // Draw black and white stripes to present an "interesting" keyframe. |
+ // Draw blue and green checkerboard pattern to show "interesting" keyframe. |
+ const int kSquareSizePixels = 8; |
for (int y = 0; y < view_.GetRect().size().height(); ++y) { |
for (int x = 0; x < view_.GetRect().size().width(); ++x) { |
- uint32_t color = x % 2 ? 0xFF0000FF : 0xFFFFFFFF; |
+ int x_square = x / kSquareSizePixels; |
+ int y_square = y / kSquareSizePixels; |
+ uint32_t color = ((x_square + y_square) % 2) ? 0xFF0000FF : 0xFF00FF00; |
*image.GetAddr32(pp::Point(x, y)) = color; |
} |
} |