Index: cc/trees/layer_tree_host_pixeltest_blending.cc |
diff --git a/cc/trees/layer_tree_host_pixeltest_blending.cc b/cc/trees/layer_tree_host_pixeltest_blending.cc |
index 05f94594ae4fa67f13f81deed924f925fead6687..e4d95bc361ec74d39ed7dcf097cd48b31913ff5a 100644 |
--- a/cc/trees/layer_tree_host_pixeltest_blending.cc |
+++ b/cc/trees/layer_tree_host_pixeltest_blending.cc |
@@ -6,6 +6,7 @@ |
#include "cc/layers/picture_image_layer.h" |
#include "cc/layers/solid_color_layer.h" |
+#include "cc/paint/paint_image.h" |
#include "cc/test/layer_tree_pixel_resource_test.h" |
#include "cc/test/pixel_comparator.h" |
#include "third_party/skia/include/core/SkImage.h" |
@@ -145,7 +146,7 @@ class LayerTreeHostBlendingPixelTest : public LayerTreeHostPixelResourceTest { |
scoped_refptr<PictureImageLayer> layer = PictureImageLayer::Create(); |
layer->SetIsDrawable(true); |
layer->SetBounds(gfx::Size(width, height)); |
- layer->SetImage(backing_store->makeImageSnapshot()); |
+ layer->SetImage(PaintImage(backing_store->makeImageSnapshot())); |
return layer; |
} |
@@ -167,7 +168,7 @@ class LayerTreeHostBlendingPixelTest : public LayerTreeHostPixelResourceTest { |
bounds.width() - kMaskOffset * 2, |
bounds.height() - kMaskOffset * 2), |
paint); |
- mask->SetImage(surface->makeImageSnapshot()); |
+ mask->SetImage(PaintImage(surface->makeImageSnapshot())); |
layer->SetMaskLayer(mask.get()); |
} |