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

Unified Diff: cc/tiles/tile_manager.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: nits Created 3 years, 6 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
Index: cc/tiles/tile_manager.cc
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
index e2d11552268c562607b140c1b0349d73670a49a1..2acd3c9606537e033c9230d393d5bdea7a88ef68 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -675,11 +675,10 @@ TileManager::PrioritizedWorkToSchedule TileManager::AssignGpuMemoryToTiles() {
// canvas which is reset between tiles.
tile->set_solid_color_analysis_performed(true);
SkColor color = SK_ColorTRANSPARENT;
- gfx::RectF layer_rect = tile->raster_transform().InverseMapRect(
- gfx::RectF(tile->content_rect()));
+
bool is_solid_color =
prioritized_tile.raster_source()->PerformSolidColorAnalysis(
- gfx::ToEnclosingRect(layer_rect), 1.f, &color);
+ tile->content_rect(), tile->raster_transform(), &color);
if (is_solid_color) {
tile->draw_info().set_solid_color(color);
client_->NotifyTileStateChanged(tile);

Powered by Google App Engine
This is Rietveld 408576698