OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 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. | |
4 | |
5 #ifndef BASE_GFX_BLIT_H_ | |
6 #define BASE_GFX_BLIT_H_ | |
7 | |
8 #include "base/gfx/native_widget_types.h" | |
9 #include "base/gfx/point.h" | |
10 #include "base/gfx/rect.h" | |
11 | |
12 namespace skia { | |
13 class PlatformCanvas; | |
14 } // namespace skia | |
15 | |
16 namespace gfx { | |
17 | |
18 class Point; | |
19 class Rect; | |
20 | |
21 // Blits a rectangle from the source context into the destination context. | |
22 void BlitContextToContext(NativeDrawingContext dst_context, | |
23 const Rect& dst_rect, | |
24 NativeDrawingContext src_context, | |
25 const Point& src_origin); | |
26 | |
27 // Blits a rectangle from the source context into the destination canvas. | |
28 void BlitContextToCanvas(skia::PlatformCanvas *dst_canvas, | |
29 const Rect& dst_rect, | |
30 NativeDrawingContext src_context, | |
31 const Point& src_origin); | |
32 | |
33 // Blits a rectangle from the source canvas into the destination context. | |
34 void BlitCanvasToContext(NativeDrawingContext dst_context, | |
35 const Rect& dst_rect, | |
36 skia::PlatformCanvas *src_canvas, | |
37 const Point& src_origin); | |
38 | |
39 // Blits a rectangle from the source canvas into the destination canvas. | |
40 void BlitCanvasToCanvas(skia::PlatformCanvas *dst_canvas, | |
41 const Rect& dst_rect, | |
42 skia::PlatformCanvas *src_canvas, | |
43 const Point& src_origin); | |
44 | |
45 } // namespace gfx | |
46 | |
47 #endif // BASE_GFX_BLIT_H_ | |
OLD | NEW |