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 #ifndef GFX_BLIT_H_ | 5 #ifndef GFX_BLIT_H_ |
6 #define GFX_BLIT_H_ | 6 #define GFX_BLIT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "gfx/native_widget_types.h" | 9 #include "gfx/native_widget_types.h" |
10 #include "gfx/point.h" | |
11 #include "gfx/rect.h" | |
12 | 10 |
13 namespace skia { | 11 namespace skia { |
14 class PlatformCanvas; | 12 class PlatformCanvas; |
15 } // namespace skia | 13 } // namespace skia |
16 | 14 |
17 namespace gfx { | 15 namespace gfx { |
18 | 16 |
19 class Point; | 17 class Point; |
20 class Rect; | 18 class Rect; |
21 | 19 |
(...skipping 24 matching lines...) Expand all Loading... |
46 // Scrolls the given subset of the given canvas by the given amount. | 44 // Scrolls the given subset of the given canvas by the given amount. |
47 // The canvas should not have a clip or a transform applied, since platforms | 45 // The canvas should not have a clip or a transform applied, since platforms |
48 // may implement those operations differently. | 46 // may implement those operations differently. |
49 void ScrollCanvas(skia::PlatformCanvas* canvas, | 47 void ScrollCanvas(skia::PlatformCanvas* canvas, |
50 const Rect& clip, | 48 const Rect& clip, |
51 const Point& amount); | 49 const Point& amount); |
52 | 50 |
53 } // namespace gfx | 51 } // namespace gfx |
54 | 52 |
55 #endif // GFX_BLIT_H_ | 53 #endif // GFX_BLIT_H_ |
OLD | NEW |