Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: cc/tiles/gpu_image_decode_controller.cc

Issue 1909953002: cc: Do not add already failed image decode tasks as dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_states
Patch Set: changed patch dependency Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698