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

Unified Diff: ui/gfx/blit.h

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats Created 8 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
Index: ui/gfx/blit.h
diff --git a/ui/gfx/blit.h b/ui/gfx/blit.h
index 01fa4f3f6beec2a99255b928fb2c7e16e72b5286..616fda3c18dfb9de3c44d87a85d11c279fee64b7 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
« .gitmodules ('K') | « content/common/gpu/image_transport_surface.cc ('k') | ui/gfx/blit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698