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

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

Issue 2752693002: Factor gfx::Transform and skia_util into their own component. (Closed)
Patch Set: none Created 3 years, 9 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/gfx/BUILD.gn ('k') | ui/gfx/skia_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SKIA_UTIL_H_ 5 #ifndef UI_GFX_SKIA_UTIL_H_
6 #define UI_GFX_SKIA_UTIL_H_ 6 #define UI_GFX_SKIA_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "cc/paint/paint_shader.h"
12 #include "third_party/skia/include/core/SkColor.h" 11 #include "third_party/skia/include/core/SkColor.h"
13 #include "third_party/skia/include/core/SkRect.h" 12 #include "third_party/skia/include/core/SkRect.h"
14 #include "ui/gfx/geometry/quad_f.h" 13 #include "ui/gfx/geometry/quad_f.h"
15 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
16 #include "ui/gfx/gfx_export.h" 15 #include "ui/gfx/gfx_export.h"
17 16
18 class SkBitmap; 17 class SkBitmap;
19 class SkMatrix; 18 class SkMatrix;
20 19
21 namespace gfx { 20 namespace gfx {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 57
59 // Converts an hb_position_t to a Skia floating-point value. 58 // Converts an hb_position_t to a Skia floating-point value.
60 GFX_EXPORT SkScalar HarfBuzzUnitsToSkiaScalar(int value); 59 GFX_EXPORT SkScalar HarfBuzzUnitsToSkiaScalar(int value);
61 60
62 // Converts an hb_position_t to a float. 61 // Converts an hb_position_t to a float.
63 GFX_EXPORT float HarfBuzzUnitsToFloat(int value); 62 GFX_EXPORT float HarfBuzzUnitsToFloat(int value);
64 63
65 } // namespace gfx 64 } // namespace gfx
66 65
67 #endif // UI_GFX_SKIA_UTIL_H_ 66 #endif // UI_GFX_SKIA_UTIL_H_
OLDNEW
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/skia_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698