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

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

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats Created 8 years, 1 month 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 | Annotate | Revision Log
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/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/base/ui_export.h" 9 #include "ui/base/ui_export.h"
10 10
(...skipping 22 matching lines...) Expand all
33 const Rect& dst_rect, 33 const Rect& dst_rect,
34 SkCanvas *src_canvas, 34 SkCanvas *src_canvas,
35 const Point& src_origin); 35 const Point& src_origin);
36 36
37 // Blits a rectangle from the source canvas into the destination canvas. 37 // Blits a rectangle from the source canvas into the destination canvas.
38 UI_EXPORT void BlitCanvasToCanvas(SkCanvas *dst_canvas, 38 UI_EXPORT void BlitCanvasToCanvas(SkCanvas *dst_canvas,
39 const Rect& dst_rect, 39 const Rect& dst_rect,
40 SkCanvas *src_canvas, 40 SkCanvas *src_canvas,
41 const Point& src_origin); 41 const Point& src_origin);
42 42
43 // Scrolls the given subset of the given canvas by the given amount. 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& amount); 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_
OLDNEW
« .gitmodules ('K') | « content/common/gpu/image_transport_surface.cc ('k') | ui/gfx/blit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698