/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_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/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/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.
|
cairo_cached_surface.cc | 31 void CairoCachedSurface::UsePixbuf(GdkPixbuf* pixbuf) { 37 if (pixbuf) 38 g_object_ref(pixbuf); 43 pixbuf_ = 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...] |
custom_button.cc | 82 CairoCachedSurface* pixbuf = PixbufForState(paint_state); local 85 if (!pixbuf || !pixbuf->valid()) 99 // The widget might be larger than the pixbuf. Paint the pixbuf flush with the 101 gfx::Rect bounds = gfx::Rect(0, 0, pixbuf->Width(), 0); 103 int y = widget->allocation.height - pixbuf->Height(); 110 pixbuf->SetSource(cairo_context, x, y); 137 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&img); local 138 background_image_->UsePixbuf(pixbuf); 160 CairoCachedSurface* pixbuf = surfaces_[state].get(); local [all...] |
/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...] |
skia_utils_gtk2.h | 23 const SkBitmap GdkPixbufToImageSkia(GdkPixbuf* pixbuf);
|
/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/pixman/demos/ |
gtk-utils.c | 9 GdkPixbuf *pixbuf; local 18 if (!(pixbuf = gdk_pixbuf_new_from_file (filename, NULL))) 23 width = gdk_pixbuf_get_width (pixbuf); 24 height = gdk_pixbuf_get_height (pixbuf); 25 n_channels = gdk_pixbuf_get_n_channels (pixbuf); 26 gdk_data = gdk_pixbuf_get_pixels (pixbuf); 27 stride = gdk_pixbuf_get_rowstride (pixbuf); 68 g_object_unref (pixbuf); 78 GdkPixbuf *pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, local 80 int p_stride = gdk_pixbuf_get_rowstride (pixbuf); [all...] |
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);
|
/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.
|
cairo_cached_surface.cc | 42 void CairoCachedSurface::UsePixbuf(GdkPixbuf* pixbuf) { 43 if (pixbuf) 44 g_object_ref(pixbuf); 48 pixbuf_ = pixbuf;
|
image.cc | 22 #include <gdk-pixbuf/gdk-pixbuf.h> 42 const ImageSkia ImageSkiaFromGdkPixbuf(GdkPixbuf* pixbuf) { 43 CHECK(pixbuf); 44 gfx::Canvas canvas(gfx::Size(gdk_pixbuf_get_width(pixbuf), 45 gdk_pixbuf_get_height(pixbuf)), 50 gdk_cairo_set_source_pixbuf(cr, pixbuf, 0, 0); 55 // Returns a 16x16 red pixbuf to visually show error in decoding PNG. 59 GdkPixbuf* pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 16, 16); local 60 gdk_pixbuf_fill(pixbuf, 0xff0000ff) 357 GdkPixbuf* pixbuf() const { return pixbuf_; } function in class:gfx::internal::ImageRepGdk 866 GdkPixbuf* pixbuf = ToGdkPixbuf(); local [all...] |
/external/chromium/chrome/browser/ui/gtk/status_icons/ |
status_icon_gtk.cc | 32 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&image); 33 gtk_status_icon_set_from_pixbuf(icon_, pixbuf); 34 g_object_unref(pixbuf);
|
/external/chromium_org/chrome/browser/ui/gtk/status_icons/ |
status_icon_gtk.cc | 33 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(*image.bitmap()); 34 gtk_status_icon_set_from_pixbuf(icon_, pixbuf); 35 g_object_unref(pixbuf);
|
/external/chromium_org/chrome/browser/ui/gtk/bookmarks/ |
bookmark_utils_gtk.cc | 60 void PackButton(GdkPixbuf* pixbuf, 71 GtkWidget* image = gtk_image_new_from_pixbuf(pixbuf); 175 GdkPixbuf* pixbuf; local 180 pixbuf = favicon.CopyGdkPixbuf(); 182 pixbuf = GtkThemeService::GetDefaultFavicon(native).ToGdkPixbuf(); 183 g_object_ref(pixbuf); 186 pixbuf = GtkThemeService::GetFolderIcon(native).ToGdkPixbuf(); 187 g_object_ref(pixbuf); 190 return pixbuf; 193 GtkWidget* GetDragRepresentation(GdkPixbuf* pixbuf, 236 GdkPixbuf* pixbuf = GetPixbufForNode( local 247 GdkPixbuf* pixbuf = local 261 GdkPixbuf* pixbuf = ui::ResourceBundle::GetSharedInstance(). local [all...] |
/external/chromium_org/chrome/browser/ui/gtk/ |
custom_button.cc | 93 gfx::CairoCachedSurface* pixbuf = PixbufForState(paint_state); local 96 if (!pixbuf || !pixbuf->valid()) 113 // The widget might be larger than the pixbuf. Paint the pixbuf flush with the 115 gfx::Rect bounds = gfx::Rect(0, 0, pixbuf->Width(), 0); 117 int y = allocation.height - pixbuf->Height(); 124 pixbuf->SetSource(cairo_context, widget, x, y); 152 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(img); local 153 background_image_->UsePixbuf(pixbuf); 176 gfx::CairoCachedSurface* pixbuf = surfaces_[state].get(); local [all...] |
nine_box.cc | 18 // Draw pixbuf |src| into |dst| at position (x, y). 28 // Tile pixbuf |src| across |cr| at |x|, |y| for |width| and |height|. 81 GdkPixbuf* pixbuf = rb.GetNativeImageNamed(image).ToGdkPixbuf(); local 82 int width = gdk_pixbuf_get_width(pixbuf); 83 int height = gdk_pixbuf_get_height(pixbuf); 88 pixbuf, 0, 0, left_margin, top_margin)); 90 pixbuf, left_margin, 0, width - inset_width, top_margin)); 92 pixbuf, width - right_margin, 0, right_margin, top_margin)); 94 pixbuf, 0, top_margin, left_margin, height - inset_height)); 96 pixbuf, left_margin, top_margin, width - inset_width [all...] |
/external/chromium/chrome/browser/ui/gtk/bookmarks/ |
bookmark_utils_gtk.cc | 53 void PackButton(GdkPixbuf* pixbuf, const string16& title, bool ellipsize, 61 GtkWidget* image = gtk_image_new_from_pixbuf(pixbuf); 162 GdkPixbuf* pixbuf; local 166 pixbuf = gfx::GdkPixbufFromSkBitmap(&model->GetFavicon(node)); 168 pixbuf = GtkThemeService::GetDefaultFavicon(native); 169 g_object_ref(pixbuf); 172 pixbuf = GtkThemeService::GetFolderIcon(native); 173 g_object_ref(pixbuf); 176 return pixbuf; 179 GtkWidget* GetDragRepresentation(GdkPixbuf* pixbuf, 222 GdkPixbuf* pixbuf = GetPixbufForNode(node, model, provider->UseGtkTheme()); local 230 GdkPixbuf* pixbuf = bookmark_utils::GetPixbufForNode(node, model, local [all...] |
/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);
|
/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/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
|