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

Unified Diff: cc/tiles/tile.cc

Issue 2175553002: Raster PictureLayerTiling with fractional translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 4 years, 4 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.cc
diff --git a/cc/tiles/tile.cc b/cc/tiles/tile.cc
index 81dce76513fe2fb0f947448355385662cc86c323..fc3e0de9cc6a496acd391834af063f00171e76c0 100644
--- a/cc/tiles/tile.cc
+++ b/cc/tiles/tile.cc
@@ -24,7 +24,7 @@ Tile::Tile(TileManager* tile_manager,
: tile_manager_(tile_manager),
content_rect_(info.content_rect),
enclosing_layer_rect_(info.enclosing_layer_rect),
- contents_scale_(info.contents_scale),
+ contents_transform_(info.contents_transform),
layer_id_(layer_id),
source_frame_number_(source_frame_number),
flags_(flags),
@@ -45,7 +45,10 @@ Tile::~Tile() {
void Tile::AsValueInto(base::trace_event::TracedValue* value) const {
TracedValue::MakeDictIntoImplicitSnapshotWithCategory(
TRACE_DISABLED_BY_DEFAULT("cc.debug"), value, "cc::Tile", this);
- value->SetDouble("contents_scale", contents_scale_);
+ value->SetDouble("contents_transform_pre_scale",
enne (OOO) 2016/08/29 20:21:19 bikeshed: I'd leave this as contents_scale and con
+ contents_transform_.pre_scale());
+ MathUtil::AddToTracedValue("contents_transform_translation",
+ contents_transform_.translation(), value);
MathUtil::AddToTracedValue("content_rect", content_rect_, value);
« cc/playback/raster_source.h ('K') | « 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