OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/gfx/blit.h" | 5 #include "app/gfx/blit.h" |
6 | 6 |
7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
8 #include <cairo/cairo.h> | 8 #include <cairo/cairo.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/gfx/point.h" | 11 #include "base/gfx/point.h" |
12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
13 #if defined(OS_MACOSX) | 13 #if defined(OS_MACOSX) |
14 #include "base/scoped_cftyperef.h" | 14 #include "base/scoped_cftyperef.h" |
15 #endif | 15 #endif |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 void BlitCanvasToCanvas(skia::PlatformCanvas *dst_canvas, | 93 void BlitCanvasToCanvas(skia::PlatformCanvas *dst_canvas, |
94 const Rect& dst_rect, | 94 const Rect& dst_rect, |
95 skia::PlatformCanvas *src_canvas, | 95 skia::PlatformCanvas *src_canvas, |
96 const Point& src_origin) { | 96 const Point& src_origin) { |
97 BlitContextToContext(GetContextFromCanvas(dst_canvas), dst_rect, | 97 BlitContextToContext(GetContextFromCanvas(dst_canvas), dst_rect, |
98 GetContextFromCanvas(src_canvas), src_origin); | 98 GetContextFromCanvas(src_canvas), src_origin); |
99 } | 99 } |
100 | 100 |
101 } // namespace gfx | 101 } // namespace gfx |
OLD | NEW |