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

Unified Diff: cc/playback/raster_source.cc

Issue 2566613002: [4/5] Add translated rasterization support for PictureLayerTilingSet & below (Closed)
Patch Set: Created 4 years 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
Index: cc/playback/raster_source.cc
diff --git a/cc/playback/raster_source.cc b/cc/playback/raster_source.cc
index 4f4e552dbfe5aa4e2b605a9cfbbcd7c29d6a859c..54f9aa33e96db11713b4c97e5d2c8dc552a33422 100644
--- a/cc/playback/raster_source.cc
+++ b/cc/playback/raster_source.cc
@@ -219,12 +219,12 @@ size_t RasterSource::GetPictureMemoryUsage() const {
}
bool RasterSource::PerformSolidColorAnalysis(const gfx::Rect& content_rect,
- const gfx::SizeF& raster_scales,
+ float raster_scale,
SkColor* color) const {
TRACE_EVENT0("cc", "RasterSource::PerformSolidColorAnalysis");
gfx::Rect layer_rect = gfx::ScaleToEnclosingRect(
- content_rect, 1.f / raster_scales.width(), 1.f / raster_scales.height());
+ content_rect, 1.f / raster_scale);
layer_rect.Intersect(gfx::Rect(size_));
skia::AnalysisCanvas canvas(layer_rect.width(), layer_rect.height());
@@ -235,10 +235,10 @@ bool RasterSource::PerformSolidColorAnalysis(const gfx::Rect& content_rect,
void RasterSource::GetDiscardableImagesInRect(
const gfx::Rect& layer_rect,
- const gfx::SizeF& raster_scales,
+ float raster_scale,
std::vector<DrawImage>* images) const {
DCHECK_EQ(0u, images->size());
- display_list_->GetDiscardableImagesInRect(layer_rect, raster_scales, images);
+ display_list_->GetDiscardableImagesInRect(layer_rect, raster_scale, images);
}
bool RasterSource::CoversRect(const gfx::Rect& layer_rect) const {

Powered by Google App Engine
This is Rietveld 408576698