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

Unified Diff: ui/compositor/layer_owner.cc

Issue 375693006: Snap layers in views to physical pixel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use cc::MathUtil::Round instead Created 6 years, 5 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: ui/compositor/layer_owner.cc
diff --git a/ui/compositor/layer_owner.cc b/ui/compositor/layer_owner.cc
index 6a22e9a4a934bff922a4f07dd43f733d91f53e70..fc46d9f9d37e0d815c86d245480ae42afe2ee977 100644
--- a/ui/compositor/layer_owner.cc
+++ b/ui/compositor/layer_owner.cc
@@ -45,6 +45,7 @@ scoped_ptr<Layer> LayerOwner::RecreateLayer() {
new_layer->set_name(old_layer->name());
new_layer->SetFillsBoundsOpaquely(old_layer->fills_bounds_opaquely());
new_layer->SetFillsBoundsCompletely(old_layer->FillsBoundsCompletely());
+ new_layer->SetSubpixelPositionOffset(old_layer->subpixel_position_offset());
// Install new layer as a sibling of the old layer, stacked below it.
if (old_layer->parent()) {

Powered by Google App Engine
This is Rietveld 408576698