/external/chromium/chrome/browser/ |
icon_loader_linux.cc | 7 #include <gdk-pixbuf/gdk-pixbuf.h> 46 // At this point, the pixbuf is owned by the loader. 47 GdkPixbuf* pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); local 49 if (pixbuf) { 50 DCHECK_EQ(size, gdk_pixbuf_get_width(pixbuf)); 51 DCHECK_EQ(size, gdk_pixbuf_get_height(pixbuf)); 52 // Takes ownership of |pixbuf|. 53 g_object_ref(pixbuf); 54 image_.reset(new gfx::Image(pixbuf)); [all...] |
/external/chromium/chrome/browser/themes/ |
theme_service_gtk.cc | 7 #include <gdk-pixbuf/gdk-pixbuf.h> 27 // Check to see if we already have the pixbuf in the cache. 33 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(bitmap); local 35 // We loaded successfully. Cache the pixbuf. 36 if (pixbuf) { 38 GdkPixbuf* original_pixbuf = pixbuf; 39 pixbuf = gdk_pixbuf_flip(pixbuf, TRUE); 43 gdk_pixbufs_[key] = pixbuf; [all...] |
/external/chromium/chrome/browser/ui/gtk/ |
cairo_cached_surface.h | 14 // gdk_cairo_set_source_pixbuf(), CairoCachedSurface assumes that the pixbuf is 33 // The dimensions of the underlying pixbuf/surface. (or -1 if invalid.) 37 // Sets the pixbuf that we pass to cairo. Calling UsePixbuf() only derefs the 38 // current pixbuf and surface (if they exist). Actually transfering data to 41 void UsePixbuf(GdkPixbuf* pixbuf); 43 // Sets our pixbuf as the active surface starting at (x, y), uploading it in 47 // Raw access to the pixbuf. May be NULL. Used for a few gdk operations 49 GdkPixbuf* pixbuf() { return pixbuf_; } function in class:CairoCachedSurface 52 // The source pixbuf.
|
hung_renderer_dialog_gtk.cc | 135 gtk_tree_view_column_add_attribute(column, renderer, "pixbuf", COL_FAVICON); 159 GdkPixbuf* pixbuf = NULL; local 161 pixbuf = gfx::GdkPixbufFromSkBitmap(&favicon); 163 COL_FAVICON, pixbuf, 166 if (pixbuf) 167 g_object_unref(pixbuf);
|
nine_box.cc | 16 // Draw pixbuf |src| into |dst| at position (x, y). 22 // Tile pixbuf |src| across |cr| at |x|, |y| for |width| and |height|. 70 GdkPixbuf* pixbuf = rb.GetPixbufNamed(image); local 71 int width = gdk_pixbuf_get_width(pixbuf); 72 int height = gdk_pixbuf_get_height(pixbuf); 76 images_[0] = gdk_pixbuf_new_subpixbuf(pixbuf, 0, 0, left_margin, top_margin); 77 images_[1] = gdk_pixbuf_new_subpixbuf(pixbuf, left_margin, 0, 79 images_[2] = gdk_pixbuf_new_subpixbuf(pixbuf, width - right_margin, 0, 81 images_[3] = gdk_pixbuf_new_subpixbuf(pixbuf, 0, top_margin, 83 images_[4] = gdk_pixbuf_new_subpixbuf(pixbuf, left_margin, top_margin 174 GdkPixbuf* pixbuf = images_[image_idx]; local [all...] |
page_info_bubble_gtk.cc | 217 GdkPixbuf* pixbuf = *model_.GetIconImage(section.icon_id); local 218 if (pixbuf) { 219 GtkWidget* image = gtk_image_new_from_pixbuf(pixbuf);
|
reload_button_gtk.cc | 238 GdkPixbuf* pixbuf = gtk_icon_set_render_icon( local 248 gtk_image_new_from_pixbuf(pixbuf)); 249 g_object_unref(pixbuf);
|
/external/chromium_org/chrome/browser/themes/ |
theme_service_gtk.cc | 7 #include <gdk-pixbuf/gdk-pixbuf.h> 25 // Check to see if we already have the pixbuf in the cache. 31 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(bitmap); local 33 // We loaded successfully. Cache the pixbuf. 34 if (pixbuf) { 36 GdkPixbuf* original_pixbuf = pixbuf; 37 pixbuf = gdk_pixbuf_flip(pixbuf, TRUE); 41 gdk_pixbufs_[key] = pixbuf; [all...] |
/external/chromium_org/ui/base/resource/ |
resource_bundle_gtk.cc | 39 GdkPixbuf* pixbuf = gdk_pixbuf_loader_get_pixbuf(loader.get()); 40 if (!pixbuf) 44 // |pixbuf| will get unreffed and destroyed (see below). The returned value 46 return gdk_pixbuf_flip(pixbuf, TRUE); 48 // The pixbuf is owned by the loader, so add a ref so when we delete the 49 // loader (when the ScopedGObject goes out of scope), the pixbuf still 51 g_object_ref(pixbuf); 52 return pixbuf; 91 GdkPixbuf* pixbuf = LoadPixbuf(data.get(), rtl == RTL_ENABLED); local 93 if (!pixbuf) { [all...] |
/external/chromium_org/ui/gfx/image/ |
cairo_cached_surface.h | 21 // gdk_cairo_set_source_pixbuf(), CairoCachedSurface assumes that the pixbuf is 43 // The dimensions of the underlying pixbuf/surface. (or -1 if invalid.) 47 // Sets the pixbuf that we pass to cairo. Calling UsePixbuf() only derefs the 48 // current pixbuf and surface (if they exist). Actually transfering data to 51 void UsePixbuf(GdkPixbuf* pixbuf); 53 // Sets our pixbuf as the active surface starting at (x, y), uploading it in 62 // Raw access to the pixbuf. May be NULL. Used for a few gdk operations 64 GdkPixbuf* pixbuf() { return pixbuf_; } function in class:gfx::CairoCachedSurface 73 // The source pixbuf.
|
image_unittest.cc | 441 GdkPixbuf* pixbuf; local 445 pixbuf = image.CopyGdkPixbuf(); 448 EXPECT_TRUE(pixbuf); 449 g_object_unref(pixbuf);
|
/external/chromium/chrome/browser/ui/gtk/extensions/ |
extension_uninstall_dialog_gtk.cc | 63 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(skia_icon); local 64 GtkWidget* icon = gtk_image_new_from_pixbuf(pixbuf); 65 g_object_unref(pixbuf);
|
extension_install_dialog_gtk.cc | 89 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&scaled_icon); local 90 GtkWidget* icon = gtk_image_new_from_pixbuf(pixbuf); 91 g_object_unref(pixbuf);
|
/external/chromium_org/chrome/browser/ui/gtk/extensions/ |
browser_action_test_util_gtk.cc | 56 GdkPixbuf* pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(image)); local 57 // gfx::Image takes ownership of the |pixbuf| reference. We have to increase 58 // the ref count so |pixbuf| stays around when the image object is destroyed. 59 g_object_ref(pixbuf); 60 return gfx::Image(pixbuf);
|
extension_uninstall_dialog_gtk.cc | 81 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(*icon_.bitmap()); local 82 GtkWidget* icon = gtk_image_new_from_pixbuf(pixbuf); 83 g_object_unref(pixbuf);
|
/external/chromium_org/webkit/common/cursors/ |
webcursor_gtk.cc | 179 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(bitmap); local 181 pixbuf, 185 g_object_unref(pixbuf);
|
/external/chromium/webkit/glue/ |
webcursor_gtk.cc | 200 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&bitmap); local 202 pixbuf, 206 gdk_pixbuf_unref(pixbuf);
|
/external/chromium_org/chrome/browser/ui/gtk/ |
validation_message_bubble_gtk.cc | 94 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap( local 96 gtk_image_set_from_pixbuf(GTK_IMAGE(icon), pixbuf); local 97 g_object_unref(pixbuf);
|
global_error_bubble.cc | 53 GdkPixbuf* pixbuf = image.ToGdkPixbuf(); local 54 GtkWidget* image_view = gtk_image_new_from_pixbuf(pixbuf);
|
/external/chromium_org/chrome/browser/ui/gtk/website_settings/ |
permission_selector.cc | 62 GdkPixbuf* pixbuf = WebsiteSettingsUI::GetPermissionIcon( local 64 icon_ = gtk_image_new_from_pixbuf(pixbuf); 144 GdkPixbuf* pixbuf = WebsiteSettingsUI::GetPermissionIcon( local 146 gtk_image_set_from_pixbuf(GTK_IMAGE(icon_), pixbuf); local
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
skia_utils_gtk2.cc | 37 const SkBitmap GdkPixbufToImageSkia(GdkPixbuf* pixbuf) { 38 // TODO(erg): What do we do in the case where the pixbuf fails these dchecks? 42 DCHECK_EQ(GDK_COLORSPACE_RGB, gdk_pixbuf_get_colorspace(pixbuf)); 44 int n_channels = gdk_pixbuf_get_n_channels(pixbuf); 45 int w = gdk_pixbuf_get_width(pixbuf); 46 int h = gdk_pixbuf_get_height(pixbuf); 57 guchar* gdk_pixels = gdk_pixbuf_get_pixels(pixbuf); 72 int rowstride = gdk_pixbuf_get_rowstride(pixbuf); 73 guchar* gdk_pixels = gdk_pixbuf_get_pixels(pixbuf); 102 GdkPixbuf* pixbuf local [all...] |
menu_util.cc | 25 GdkPixbuf* pixbuf = GdkPixbufFromSkBitmap(*icon.ToSkBitmap()); local 28 BuildMenuItemWithImage(label, gtk_image_new_from_pixbuf(pixbuf)); 29 g_object_unref(pixbuf);
|
/external/chromium_org/chrome/browser/ui/gtk/infobars/ |
extension_infobar_gtk.cc | 178 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(bitmap); local 179 gtk_image_set_from_pixbuf(GTK_IMAGE(icon_), pixbuf); local 180 g_object_unref(pixbuf);
|
/external/chromium_org/ui/gfx/ |
gtk_util.cc | 95 GdkPixbuf* pixbuf = gdk_pixbuf_new( local 103 uint8* divided = gdk_pixbuf_get_pixels(pixbuf); 126 return pixbuf;
|
/external/pixman/demos/ |
composite-test.c | 138 GdkPixbuf *pixbuf; local 152 pixbuf = pixbuf_from_argb32 (pixman_image_get_data (dest_img), 154 image = gtk_image_new_from_pixbuf (pixbuf); 162 g_object_unref (pixbuf);
|