summaryrefslogtreecommitdiffstats
path: root/ui/gfx/blit.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-10 00:03:19 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-10 00:03:19 +0000
commit2e648601b082774989dec39da9983a5e27e9a797 (patch)
treefc961f320f1d39cd9a8d0213382b4221ede73c6b /ui/gfx/blit.h
parentc36000e00d75b51321a18aff9260ee7f66f2b54e (diff)
downloadchromium_src-2e648601b082774989dec39da9983a5e27e9a797.zip
chromium_src-2e648601b082774989dec39da9983a5e27e9a797.tar.gz
chromium_src-2e648601b082774989dec39da9983a5e27e9a797.tar.bz2
ui: Prefer +/- operators to apply offsets.
Adds +/- operators to gfx::Rect that are applied to its origin Point. Removes gfx::Point method a.OffsetFrom(b) in favor of (b - a). Begin use +/- instead of Offset() in ui/gfx/ and cc/ New tests: ui_unittests:RectTest.Offset R=pkasting,enne BUG=158416 Review URL: https://codereview.chromium.org/11293194 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167012 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/blit.h')
-rw-r--r--ui/gfx/blit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/blit.h b/ui/gfx/blit.h
index 01fa4f3..616fda3 100644
--- a/ui/gfx/blit.h
+++ b/ui/gfx/blit.h
@@ -40,12 +40,12 @@ UI_EXPORT void BlitCanvasToCanvas(SkCanvas *dst_canvas,
SkCanvas *src_canvas,
const Point& src_origin);
-// Scrolls the given subset of the given canvas by the given amount.
+// Scrolls the given subset of the given canvas by the given offset.
// The canvas should not have a clip or a transform applied, since platforms
// may implement those operations differently.
UI_EXPORT void ScrollCanvas(SkCanvas* canvas,
const Rect& clip,
- const Vector2d& amount);
+ const Vector2d& offset);
} // namespace gfx