[go: nahoru, domu]

ImageHijackCanvas should skip non-lazy images from SkImageShader

ImageHijack canvas can currently hit a DCHECK when we try to process
images from SkImageShaders, as it handles them even if they are
non-lazy. Non-lazy images should be skipped.

BUG=673981
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Review-Url: https://codereview.chromium.org/2572783005
Cr-Commit-Position: refs/heads/master@{#438650}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index 8e6b7e5..d9c52a2d 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -852,6 +852,7 @@
     "output/texture_mailbox_deleter_unittest.cc",
     "playback/discardable_image_map_unittest.cc",
     "playback/display_item_list_unittest.cc",
+    "playback/image_hijack_canvas_unittest.cc",
     "playback/raster_source_unittest.cc",
     "playback/recording_source_unittest.cc",
     "proto/base_conversions_unittest.cc",