Skip to content

Commit

Permalink
Clear the raster cache result when bypassing raster cache. (flutter#5300
Browse files Browse the repository at this point in the history
  • Loading branch information
tvolkert authored May 18, 2018
1 parent ea9f96b commit 1179c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/layers/picture_layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ void PictureLayer::Preroll(PrerollContext* context, const SkMatrix& matrix) {
raster_cache_result_ = cache->GetPrerolledImage(
context->gr_context, sk_picture, matrix, context->dst_color_space,
is_complex_, will_change_);
} else {
raster_cache_result_ = RasterCacheResult();
}

SkRect bounds = sk_picture->cullRect().makeOffset(offset_.x(), offset_.y());
Expand Down

0 comments on commit 1179c38

Please sign in to comment.