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

Issue 11293193: ui: Add non-member Vector2dScale() and Vector3dScale() methods to create scaled vectors (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
sky, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

ui: Add non-member Vector2dScale() and Vector3dScale() methods to create scaled vectors These behave like similar methods for Rect/Point/Size. Tests: ui_unittests:Vector2dTest.Scale ui_unittests:Vector3dTest.Scale R=sky BUG=160158 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=166993

Patch Set 1 #

Patch Set 2 : use it in cc/ #

Total comments: 10

Patch Set 3 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -29 lines) Patch
M cc/geometry.h View 1 1 chunk +0 lines, -13 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/page_scale_animation.cc View 1 2 2 chunks +3 lines, -8 lines 0 comments Download
M ui/gfx/vector2d_f.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M ui/gfx/vector2d_f.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gfx/vector2d_unittest.cc View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M ui/gfx/vector3d_f.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M ui/gfx/vector3d_f.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M ui/gfx/vector3d_unittest.cc View 1 2 2 chunks +24 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
danakj
8 years, 1 month ago (2012-11-09 02:03:42 UTC) #1
sky
LGTM https://codereview.chromium.org/11293193/diff/8/ui/gfx/vector2d_f.h File ui/gfx/vector2d_f.h (right): https://codereview.chromium.org/11293193/diff/8/ui/gfx/vector2d_f.h#newcode88 ui/gfx/vector2d_f.h:88: const Vector2dF& v, float x_scale, float y_scale); nit: ...
8 years, 1 month ago (2012-11-09 17:06:21 UTC) #2
danakj
https://codereview.chromium.org/11293193/diff/8/ui/gfx/vector2d_f.h File ui/gfx/vector2d_f.h (right): https://codereview.chromium.org/11293193/diff/8/ui/gfx/vector2d_f.h#newcode88 ui/gfx/vector2d_f.h:88: const Vector2dF& v, float x_scale, float y_scale); On 2012/11/09 ...
8 years, 1 month ago (2012-11-09 18:21:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11293193/10001
8 years, 1 month ago (2012-11-09 19:58:41 UTC) #4
danakj
+enne for cc/ changes
8 years, 1 month ago (2012-11-09 19:59:24 UTC) #5
enne (OOO)
cc lgtm
8 years, 1 month ago (2012-11-09 20:32:07 UTC) #6
commit-bot: I haz the power
8 years, 1 month ago (2012-11-09 20:37:16 UTC) #7

Powered by Google App Engine
This is Rietveld 408576698