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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 3 years, 12 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 | « ui/compositor/paint_recorder.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 "skia/ext/cdl_common.h"
8 #include "ui/gfx/gfx_export.h" 9 #include "ui/gfx/gfx_export.h"
9 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
10 11
11 class SkCanvas;
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 class Rect; 15 class Rect;
16 class Vector2d; 16 class Vector2d;
17 17
18 // Scrolls the given subset of the given canvas by the given offset. 18 // Scrolls the given subset of the given canvas by the given offset.
19 // The canvas should not have a clip or a transform applied, since platforms 19 // The canvas should not have a clip or a transform applied, since platforms
20 // may implement those operations differently. 20 // may implement those operations differently.
21 GFX_EXPORT void ScrollCanvas(SkCanvas* canvas, 21 GFX_EXPORT void ScrollCanvas(CdlCanvas* canvas,
22 const Rect& clip, 22 const Rect& clip,
23 const Vector2d& offset); 23 const Vector2d& offset);
24 24
25 } // namespace gfx 25 } // namespace gfx
26 26
27 #endif // UI_GFX_BLIT_H_ 27 #endif // UI_GFX_BLIT_H_
OLDNEW
« no previous file with comments | « ui/compositor/paint_recorder.cc ('k') | ui/gfx/blit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698