diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 04:33:51 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 04:33:51 +0000 |
commit | a83476617999697763c3c02115d3d0f7ecfe050f (patch) | |
tree | 8a9ed3a54b3fa5db28dd894413d79b3850bb909a /gfx/blit.h | |
parent | 2c79974a4526a43c2f33c42832c6817bd4e1d7f3 (diff) | |
download | chromium_src-a83476617999697763c3c02115d3d0f7ecfe050f.zip chromium_src-a83476617999697763c3c02115d3d0f7ecfe050f.tar.gz chromium_src-a83476617999697763c3c02115d3d0f7ecfe050f.tar.bz2 |
Add a function to scroll a platform canvas. This uses the platform scroll
functions when available, and on Linux implements a simple manual scroll
function since Cairo/Skia doesn't provide one.
BUG=none
TEST=included unit test
Review URL: http://codereview.chromium.org/2967008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/blit.h')
-rw-r--r-- | gfx/blit.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -42,6 +42,13 @@ void BlitCanvasToCanvas(skia::PlatformCanvas *dst_canvas, skia::PlatformCanvas *src_canvas, const Point& src_origin); +// Scrolls the given subset of the given canvas by the given amount. +// The canvas should not have a clip or a transform applied, since platforms +// may implement those operations differently. +void ScrollCanvas(skia::PlatformCanvas* canvas, + const Rect& clip, + const Point& amount); + } // namespace gfx #endif // GFX_BLIT_H_ |