Index: ui/gfx/skia_util.h |
=================================================================== |
--- ui/gfx/skia_util.h (revision 92815) |
+++ ui/gfx/skia_util.h (working copy) |
@@ -10,6 +10,7 @@ |
#include "third_party/skia/include/core/SkColor.h" |
#include "third_party/skia/include/core/SkRect.h" |
+#include "ui/ui_api.h" |
class SkBitmap; |
class SkShader; |
@@ -19,8 +20,8 @@ |
class Rect; |
// Convert between Skia and gfx rect types. |
-SkRect RectToSkRect(const gfx::Rect& rect); |
-gfx::Rect SkRectToRect(const SkRect& rect); |
+UI_API SkRect RectToSkRect(const gfx::Rect& rect); |
+UI_API gfx::Rect SkRectToRect(const SkRect& rect); |
// Creates a vertical gradient shader. The caller owns the shader. |
// Example usage to avoid leaks: |
@@ -28,17 +29,18 @@ |
// |
// (The old shader in the paint, if any, needs to be freed, and SkSafeUnref will |
// handle the NULL case.) |
-SkShader* CreateGradientShader(int start_point, |
- int end_point, |
- SkColor start_color, |
- SkColor end_color); |
+UI_API SkShader* CreateGradientShader(int start_point, |
+ int end_point, |
+ SkColor start_color, |
+ SkColor end_color); |
// Returns true if the two bitmaps contain the same pixels. |
-bool BitmapsAreEqual(const SkBitmap& bitmap1, const SkBitmap& bitmap2); |
+UI_API bool BitmapsAreEqual(const SkBitmap& bitmap1, const SkBitmap& bitmap2); |
// Strip the accelerator char (typically '&') from a menu string. A |
// double accelerator char ('&&') will be converted to a single char. |
-std::string RemoveAcceleratorChar(const std::string& s, char accelerator_char); |
+UI_API std::string RemoveAcceleratorChar(const std::string& s, |
+ char accelerator_char); |
} // namespace gfx; |