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

Unified Diff: chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h

Issue 18334003: Linux status icon for Ubuntu Unity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: file restored Created 7 years, 5 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: chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
diff --git a/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h b/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
index 18a10753f9f719cce5fbc48db908a3bf70a2355f..1ce81a52bf2f7c1c3a2dde11d6f8f6bf945acafd 100644
--- a/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
+++ b/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
@@ -8,6 +8,9 @@
#include "third_party/skia/include/core/SkColor.h"
typedef struct _GdkColor GdkColor;
+typedef struct _GdkPixbuf GdkPixbuf;
+
+class SkBitmap;
namespace libgtk2ui {
@@ -17,6 +20,13 @@ SkColor GdkColorToSkColor(GdkColor color);
// Converts ARGB to GdkColor.
GdkColor SkColorToGdkColor(SkColor color);
+const SkBitmap GdkPixbufToImageSkia(GdkPixbuf* pixbuf);
+
+// Convert and copy a SkBitmap to a GdkPixbuf. NOTE: this uses BGRAToRGBA, so
+// it is an expensive operation. The returned GdkPixbuf will have a refcount of
+// 1, and the caller is responsible for unrefing it when done.
+GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap& bitmap);
+
} // namespace libgtk2ui
#endif // CHROME_BROWSER_UI_LIBGTK2UI_SKIA_UTILS_GTK2_H_

Powered by Google App Engine
This is Rietveld 408576698