1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/base/ui_export.h"
19 // Blits a rectangle from the source context into the destination context.
20 UI_EXPORT
void BlitContextToContext(NativeDrawingContext dst_context
,
22 NativeDrawingContext src_context
,
23 const Point
& src_origin
);
25 // Blits a rectangle from the source context into the destination canvas.
26 UI_EXPORT
void BlitContextToCanvas(SkCanvas
*dst_canvas
,
28 NativeDrawingContext src_context
,
29 const Point
& src_origin
);
31 // Blits a rectangle from the source canvas into the destination context.
32 UI_EXPORT
void BlitCanvasToContext(NativeDrawingContext dst_context
,
35 const Point
& src_origin
);
37 // Blits a rectangle from the source canvas into the destination canvas.
38 UI_EXPORT
void BlitCanvasToCanvas(SkCanvas
*dst_canvas
,
41 const Point
& src_origin
);
43 // Scrolls the given subset of the given canvas by the given offset.
44 // The canvas should not have a clip or a transform applied, since platforms
45 // may implement those operations differently.
46 UI_EXPORT
void ScrollCanvas(SkCanvas
* canvas
,
48 const Vector2d
& offset
);
52 #endif // UI_GFX_BLIT_H_