Clear the raster cache result when bypassing raster cache. (flutter/engine#5300)

https://github.com/flutter/flutter/issues/17448
This commit is contained in:
Todd Volkert
2018-05-17 23:50:07 -07:00
committed by GitHub
parent f14e317d12
commit 300f7fa815

View File

@@ -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());