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

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: combined Created 3 years, 9 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 b43383fd68bdb70d03ac717e0204c92e44f49974..4432d98c52d0e3cfc4d8628c37e704e792a099b6 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),
- contents_scale_(info.contents_scale),
+ raster_transform_(info.raster_transform),
layer_id_(layer_id),
source_frame_number_(source_frame_number),
flags_(flags),
@@ -49,7 +49,13 @@ 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_scale", contents_scale_key());
+
+ value->BeginArray("raster_transform");
+ value->AppendDouble(raster_transform_.scale());
+ value->AppendDouble(raster_transform_.translation().x());
+ value->AppendDouble(raster_transform_.translation().y());
+ value->EndArray();
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