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 04a25a33fe87c1acaf02dadc9db3672dcd1456bf..44dfbdc70bfa906fdb83d2376ebe761d56d96314 100644 |
--- a/cc/tiles/gpu_image_decode_controller.cc |
+++ b/cc/tiles/gpu_image_decode_controller.cc |
@@ -110,7 +110,9 @@ class ImageUploadTaskImpl : public TileTask { |
image_ref_(draw_image.image()), |
source_prepare_tiles_id_(source_prepare_tiles_id) { |
DCHECK(!SkipImage(draw_image)); |
- dependencies_.push_back(std::move(decode_dependency)); |
+ if (decode_dependency) { |
vmpstr
2016/04/20 22:26:44
nit: no braces
Also, the unittest makes it clear,
ericrk
2016/04/20 22:34:45
Done.
|
+ dependencies_.push_back(std::move(decode_dependency)); |
+ } |
} |
// Override from Task: |