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

Unified Diff: ui/gfx/box_f.h

Issue 55763004: Allow the computation of inflated bounds for non matrix transform operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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/animation/transform_operations_unittest.cc ('k') | ui/gfx/box_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/box_f.h
diff --git a/ui/gfx/box_f.h b/ui/gfx/box_f.h
index 11770ee58acaa224a3d4984dd8ab2b9d7faa6fcc..73e0972f662318cb10ea6daf9804a584d7e25f64 100644
--- a/ui/gfx/box_f.h
+++ b/ui/gfx/box_f.h
@@ -99,6 +99,11 @@ class GFX_EXPORT BoxF {
// |origin_|.
void ExpandTo(const Point3F& point);
+ // Expands |this| to contain the given box, if necessary. Please note, even
+ // if |this| is empty, after the function |this| will continue to contain its
+ // |origin_|.
+ void ExpandTo(const BoxF& box);
+
private:
// Expands the box to contain the two given points. It is required that each
// component of |min| is less than or equal to the corresponding component in
« no previous file with comments | « cc/animation/transform_operations_unittest.cc ('k') | ui/gfx/box_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698