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

Unified Diff: cc/playback/raster_source.cc

Issue 2656983006: cc: Add image to rect map in DiscardableImageMap. (Closed)
Patch Set: rebase Created 3 years, 11 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
« cc/playback/image_id.h ('K') | « cc/playback/raster_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/raster_source.cc
diff --git a/cc/playback/raster_source.cc b/cc/playback/raster_source.cc
index e108be37dc44742f9353c21e14395e42a16abb72..06b678856bd02c474cb3f89b1d942de93b8d4d87 100644
--- a/cc/playback/raster_source.cc
+++ b/cc/playback/raster_source.cc
@@ -247,6 +247,10 @@ void RasterSource::GetDiscardableImagesInRect(
display_list_->GetDiscardableImagesInRect(layer_rect, contents_scale, images);
}
+gfx::Rect RasterSource::GetRectForImage(ImageId image_id) const {
+ return display_list_->GetRectForImage(image_id);
+}
+
bool RasterSource::CoversRect(const gfx::Rect& layer_rect) const {
if (size_.IsEmpty())
return false;
« cc/playback/image_id.h ('K') | « cc/playback/raster_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698