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

Unified Diff: content/renderer/pepper/pepper_compositor_host.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-gfx: . Created 5 years, 3 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: content/renderer/pepper/pepper_compositor_host.cc
diff --git a/content/renderer/pepper/pepper_compositor_host.cc b/content/renderer/pepper/pepper_compositor_host.cc
index c2d46856780995f6aaf9d8c435240e858385f349..e8343ee38abfa2f4b769c02d383004dfd7b60166 100644
--- a/content/renderer/pepper/pepper_compositor_host.cc
+++ b/content/renderer/pepper/pepper_compositor_host.cc
@@ -245,14 +245,15 @@ void PepperCompositorHost::UpdateLayer(
layer_->ReplaceChild(layer.get(), clip_parent);
clip_parent->AddChild(layer);
}
- gfx::Point position = PP_ToGfxPoint(new_layer->common.clip_rect.point);
+ auto position =
+ gfx::PointF(PP_ToGfxPoint(new_layer->common.clip_rect.point));
clip_parent->SetPosition(position);
clip_parent->SetBounds(PP_ToGfxSize(new_layer->common.clip_rect.size));
- layer->SetPosition(gfx::Point(-position.x(), -position.y()));
+ layer->SetPosition(gfx::PointF(-position.x(), -position.y()));
} else if (layer->parent() != layer_.get()) {
// Remove the clip parent layer.
layer_->ReplaceChild(layer->parent(), layer);
- layer->SetPosition(gfx::Point());
+ layer->SetPosition(gfx::PointF());
}
if (new_layer->color) {

Powered by Google App Engine
This is Rietveld 408576698