Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: ui/gfx/blit.h

Issue 1138753003: Remove unused blitting functions from ui/gfx/blit.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/sad_plugin.cc ('k') | ui/gfx/blit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/gfx_export.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.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.
20 GFX_EXPORT void BlitContextToContext(NativeDrawingContext dst_context, 20 GFX_EXPORT void BlitContextToContext(NativeDrawingContext dst_context,
21 const Rect& dst_rect, 21 const Rect& dst_rect,
22 NativeDrawingContext src_context, 22 NativeDrawingContext src_context,
23 const Point& src_origin); 23 const Point& src_origin);
24 24
25 // Blits a rectangle from the source context into the destination canvas.
26 GFX_EXPORT void BlitContextToCanvas(SkCanvas *dst_canvas,
27 const Rect& dst_rect,
28 NativeDrawingContext src_context,
29 const Point& src_origin);
30
31 // Blits a rectangle from the source canvas into the destination context.
32 GFX_EXPORT void BlitCanvasToContext(NativeDrawingContext dst_context,
33 const Rect& dst_rect,
34 SkCanvas *src_canvas,
35 const Point& src_origin);
36
37 // Blits a rectangle from the source canvas into the destination canvas. 25 // Blits a rectangle from the source canvas into the destination canvas.
38 GFX_EXPORT void BlitCanvasToCanvas(SkCanvas *dst_canvas, 26 GFX_EXPORT void BlitCanvasToCanvas(SkCanvas *dst_canvas,
39 const Rect& dst_rect, 27 const Rect& dst_rect,
40 SkCanvas *src_canvas, 28 SkCanvas *src_canvas,
41 const Point& src_origin); 29 const Point& src_origin);
42 30
43 // Scrolls the given subset of the given canvas by the given offset. 31 // 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 32 // The canvas should not have a clip or a transform applied, since platforms
45 // may implement those operations differently. 33 // may implement those operations differently.
46 GFX_EXPORT void ScrollCanvas(SkCanvas* canvas, 34 GFX_EXPORT void ScrollCanvas(SkCanvas* canvas,
47 const Rect& clip, 35 const Rect& clip,
48 const Vector2d& offset); 36 const Vector2d& offset);
49 37
50 } // namespace gfx 38 } // namespace gfx
51 39
52 #endif // UI_GFX_BLIT_H_ 40 #endif // UI_GFX_BLIT_H_
OLDNEW
« no previous file with comments | « content/renderer/sad_plugin.cc ('k') | ui/gfx/blit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698