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

Unified Diff: ui/gfx/image/image.h

Issue 2665623002: Fix Jumplist favicons to have high resolution in HDPI Windows displays (Closed)
Patch Set: Update comments and remove redundant .h files. Created 3 years, 11 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/image/image.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index 01344242d939a20cb9c6f7ca682104bee1d90d69..1cec7b8729f09a40340995ca17b3925a5e79fd43 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -115,6 +115,7 @@ class GFX_EXPORT Image {
// The returned result is a weak pointer owned by and scoped to the life of
// the Image. Must only be called if IsEmpty() is false.
const SkBitmap* ToSkBitmap() const;
+ const SkBitmap* ToSkBitmap2x() const;
const ImageSkia* ToImageSkia() const;
#if defined(OS_IOS)
UIImage* ToUIImage() const;
@@ -131,6 +132,9 @@ class GFX_EXPORT Image {
// Same as ToSkBitmap(), but returns a null SkBitmap if this image is empty.
SkBitmap AsBitmap() const;
+ // Same as ToSkBitmap2x(), but returns a null SkBitmap if this image is empty.
+ SkBitmap AsBitmap2x() const;
+
// Same as ToImageSkia(), but returns an empty ImageSkia if this
// image is empty.
ImageSkia AsImageSkia() const;

Powered by Google App Engine
This is Rietveld 408576698