OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef UI_GFX_BLIT_H_ | 5 #ifndef UI_GFX_BLIT_H_ |
6 #define UI_GFX_BLIT_H_ | 6 #define UI_GFX_BLIT_H_ |
7 | 7 |
| 8 #include "ui/gfx/gfx_export.h" |
8 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
9 #include "ui/base/ui_export.h" | |
10 | 10 |
11 class SkCanvas; | 11 class SkCanvas; |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 class Point; | 15 class Point; |
16 class Rect; | 16 class Rect; |
17 class Vector2d; | 17 class Vector2d; |
18 | 18 |
19 // Blits a rectangle from the source context into the destination context. | 19 // Blits a rectangle from the source context into the destination context. |
(...skipping 23 matching lines...) Expand all Loading... |
43 // Scrolls the given subset of the given canvas by the given offset. | 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 | 44 // The canvas should not have a clip or a transform applied, since platforms |
45 // may implement those operations differently. | 45 // may implement those operations differently. |
46 UI_EXPORT void ScrollCanvas(SkCanvas* canvas, | 46 UI_EXPORT void ScrollCanvas(SkCanvas* canvas, |
47 const Rect& clip, | 47 const Rect& clip, |
48 const Vector2d& offset); | 48 const Vector2d& offset); |
49 | 49 |
50 } // namespace gfx | 50 } // namespace gfx |
51 | 51 |
52 #endif // UI_GFX_BLIT_H_ | 52 #endif // UI_GFX_BLIT_H_ |
OLD | NEW |