| Index: base/gfx/gtk_util.h
|
| diff --git a/base/gfx/gtk_util.h b/base/gfx/gtk_util.h
|
| index 7062d59f8f0fc2ae82f287ccdb21bf0ffb031ea6..9d0a45ced974d58c75e6609ffc3c76c5e3b49efc 100755
|
| --- a/base/gfx/gtk_util.h
|
| +++ b/base/gfx/gtk_util.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <vector>
|
|
|
| +typedef struct _GdkPixbuf GdkPixbuf;
|
| typedef struct _GdkRegion GdkRegion;
|
|
|
| namespace gfx {
|
| @@ -17,6 +18,10 @@ class Rect;
|
| void SubtractRectanglesFromRegion(GdkRegion* region,
|
| const std::vector<gfx::Rect>& cutouts);
|
|
|
| +// Convert and copy a SkBitmap to a GdkPixbuf. NOTE: This is an expensive
|
| +// operation, all of the pixels must be copied and their order swapped.
|
| +GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap);
|
| +
|
| } // namespace gfx
|
|
|
| #endif // BASE_GFX_GTK_UTIL_H_
|
|
|