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

Unified Diff: ui/compositor/layer.h

Issue 2648583003: Handle floating point coordinates from ozone to exosphere (Closed)
Patch Set: Handle floating point coordinates from ozone to exosphere 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
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index cfb301df92a0169a9fe66a512499f94814d1f5f3..d962c43188429edde48e1b3a60b9976817292c8d 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -264,6 +264,9 @@ class COMPOSITOR_EXPORT Layer
static void ConvertPointToLayer(const Layer* source,
const Layer* target,
gfx::Point* point);
+ static void ConvertPointToLayerF(const Layer* source,
+ const Layer* target,
+ gfx::PointF* point);
// Converts a transform to be relative to the given |ancestor|. Returns
// whether success (that is, whether the given ancestor was really an
@@ -400,6 +403,10 @@ class COMPOSITOR_EXPORT Layer
bool ConvertPointForAncestor(const Layer* ancestor, gfx::Point* point) const;
bool ConvertPointFromAncestor(const Layer* ancestor, gfx::Point* point) const;
+ bool ConvertPointForAncestorF(const Layer* ancestor,
+ gfx::PointF* point) const;
+ bool ConvertPointFromAncestorF(const Layer* ancestor,
+ gfx::PointF* point) const;
// Implementation of LayerAnimatorDelegate
void SetBoundsFromAnimation(const gfx::Rect& bounds) override;
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698