| 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 | 7 |
| 8 #include "gfx/native_widget_types.h" | 8 #include "gfx/native_widget_types.h" |
| 9 #include "gfx/point.h" | 9 #include "gfx/point.h" |
| 10 #include "gfx/rect.h" | 10 #include "gfx/rect.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 const Rect& dst_rect, | 35 const Rect& dst_rect, |
| 36 skia::PlatformCanvas *src_canvas, | 36 skia::PlatformCanvas *src_canvas, |
| 37 const Point& src_origin); | 37 const Point& src_origin); |
| 38 | 38 |
| 39 // Blits a rectangle from the source canvas into the destination canvas. | 39 // Blits a rectangle from the source canvas into the destination canvas. |
| 40 void BlitCanvasToCanvas(skia::PlatformCanvas *dst_canvas, | 40 void BlitCanvasToCanvas(skia::PlatformCanvas *dst_canvas, |
| 41 const Rect& dst_rect, | 41 const Rect& dst_rect, |
| 42 skia::PlatformCanvas *src_canvas, | 42 skia::PlatformCanvas *src_canvas, |
| 43 const Point& src_origin); | 43 const Point& src_origin); |
| 44 | 44 |
| 45 // Scrolls the given subset of the given canvas by the given amount. |
| 46 // The canvas should not have a clip or a transform applied, since platforms |
| 47 // may implement those operations differently. |
| 48 void ScrollCanvas(skia::PlatformCanvas* canvas, |
| 49 const Rect& clip, |
| 50 const Point& amount); |
| 51 |
| 45 } // namespace gfx | 52 } // namespace gfx |
| 46 | 53 |
| 47 #endif // GFX_BLIT_H_ | 54 #endif // GFX_BLIT_H_ |
| OLD | NEW |