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

Unified Diff: cc/tiles/tile.cc

Issue 2629233002: cc: Remove separate x/y raster scales. (Closed)
Patch Set: 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
« no previous file with comments | « cc/tiles/tile.h ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile.cc
diff --git a/cc/tiles/tile.cc b/cc/tiles/tile.cc
index a40751fb8735157dc3460d3dbe2fdd0ed97fd0c2..b43383fd68bdb70d03ac717e0204c92e44f49974 100644
--- a/cc/tiles/tile.cc
+++ b/cc/tiles/tile.cc
@@ -26,7 +26,7 @@ Tile::Tile(TileManager* tile_manager,
tiling_(info.tiling),
content_rect_(info.content_rect),
enclosing_layer_rect_(info.enclosing_layer_rect),
- raster_scales_(info.raster_scales),
+ contents_scale_(info.contents_scale),
layer_id_(layer_id),
source_frame_number_(source_frame_number),
flags_(flags),
@@ -49,13 +49,7 @@ Tile::~Tile() {
void Tile::AsValueInto(base::trace_event::TracedValue* value) const {
TracedValue::MakeDictIntoImplicitSnapshotWithCategory(
TRACE_DISABLED_BY_DEFAULT("cc.debug"), value, "cc::Tile", this);
- // TODO(vmpstr): Update tracing to use x/y scales.
- value->SetDouble("contents_scale", contents_scale_key());
-
- value->BeginArray("raster_scales");
- value->AppendDouble(raster_scales_.width());
- value->AppendDouble(raster_scales_.height());
- value->EndArray();
+ value->SetDouble("contents_scale", contents_scale());
MathUtil::AddToTracedValue("content_rect", content_rect_, value);
« no previous file with comments | « cc/tiles/tile.h ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698