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

Unified Diff: ui/gfx/paint_vector_icon.h

Issue 2255403002: Use int rather than size_t to pass DIP amounts to vector icon functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/paint_vector_icon.h
diff --git a/ui/gfx/paint_vector_icon.h b/ui/gfx/paint_vector_icon.h
index 5dbf66cfff5c234812737b24ef27c300c01b5aae..d069c89f907d25e99dac3d39d3a4d9e80e6915a1 100644
--- a/ui/gfx/paint_vector_icon.h
+++ b/ui/gfx/paint_vector_icon.h
@@ -5,8 +5,6 @@
#ifndef UI_GFX_PAINT_VECTOR_ICON_H_
#define UI_GFX_PAINT_VECTOR_ICON_H_
-#include <stddef.h>
-
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/image/image_skia.h"
@@ -21,7 +19,7 @@ enum class VectorIconId;
// pixels. |color| is used as the fill.
GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
VectorIconId id,
- size_t dip_size,
+ int dip_size,
SkColor color);
// Creates an ImageSkia which will render the icon on demand. The size will come
@@ -31,13 +29,13 @@ GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
// As above, but creates the image at the given size.
GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
- size_t dip_size,
+ int dip_size,
SkColor color);
// As above, but also paints a badge defined by |badge_id| on top of the icon.
// The badge uses the same canvas size and default color as the icon.
GFX_EXPORT ImageSkia CreateVectorIconWithBadge(VectorIconId id,
- size_t dip_size,
+ int dip_size,
SkColor color,
VectorIconId badge_id);
@@ -46,7 +44,7 @@ GFX_EXPORT ImageSkia CreateVectorIconWithBadge(VectorIconId id,
// a canvas. This should only be used as a debugging aid and should never be
// used in production code.
GFX_EXPORT ImageSkia CreateVectorIconFromSource(const std::string& source,
- size_t dip_size,
+ int dip_size,
SkColor color);
#endif

Powered by Google App Engine
This is Rietveld 408576698