Index: cc/tiles/gpu_image_decode_controller.cc |
diff --git a/cc/tiles/gpu_image_decode_controller.cc b/cc/tiles/gpu_image_decode_controller.cc |
index b6daab4ccfeac4a8a627aa6973ee84438ee20dc7..ded8205fa33125c64f7ad9c27516b2f7b92cf2dd 100644 |
--- a/cc/tiles/gpu_image_decode_controller.cc |
+++ b/cc/tiles/gpu_image_decode_controller.cc |
@@ -191,6 +191,12 @@ bool GpuImageDecodeController::GetTaskForImageAndRef( |
return false; |
} |
+ if (image_data->decode.decode_failure) { |
+ // We have already tried and failed to decode this image, so just return. |
+ *task = nullptr; |
+ return false; |
+ } |
+ |
if (image_data->upload.image) { |
// The image is already uploaded, ref and return. |
RefImage(draw_image); |