summaryrefslogtreecommitdiffstats
path: root/gfx/blit.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/blit.h')
-rw-r--r--gfx/blit.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gfx/blit.h b/gfx/blit.h
index dd31a9e..e7ddce1 100644
--- a/gfx/blit.h
+++ b/gfx/blit.h
@@ -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_