Home
last modified time | relevance | path

Searched refs:cairo_context (Results 1 – 3 of 3) sorted by relevance

/external/chromium/chrome/browser/ui/gtk/tabs/
Ddragged_tab_gtk.cc221 cairo_t* cairo_context = gdk_cairo_create(container_->window); in SetContainerTransparency() local
222 if (!cairo_context) in SetContainerTransparency()
228 cairo_scale(cairo_context, static_cast<double>(size.width()), in SetContainerTransparency()
230 cairo_set_source_rgba(cairo_context, 1.0f, 1.0f, 1.0f, 0.0f); in SetContainerTransparency()
231 cairo_set_operator(cairo_context, CAIRO_OPERATOR_SOURCE); in SetContainerTransparency()
232 cairo_paint(cairo_context); in SetContainerTransparency()
233 cairo_destroy(cairo_context); in SetContainerTransparency()
240 cairo_t* cairo_context = gdk_cairo_create(GDK_DRAWABLE(pixmap)); in SetContainerShapeMask() local
243 cairo_set_source_rgba(cairo_context, 1.0f, 1.0f, 1.0f, 0.0f); in SetContainerShapeMask()
247 cairo_set_operator(cairo_context, CAIRO_OPERATOR_SOURCE); in SetContainerShapeMask()
[all …]
Dtab_strip_gtk.cc1719 cairo_t* cairo_context = gdk_cairo_create(container->window); in SetContainerTransparency() local
1720 if (!cairo_context) in SetContainerTransparency()
1726 cairo_scale(cairo_context, static_cast<double>(drop_indicator_width), in SetContainerTransparency()
1728 cairo_set_source_rgba(cairo_context, 1.0f, 1.0f, 1.0f, 0.0f); in SetContainerTransparency()
1729 cairo_set_operator(cairo_context, CAIRO_OPERATOR_SOURCE); in SetContainerTransparency()
1730 cairo_paint(cairo_context); in SetContainerTransparency()
1731 cairo_destroy(cairo_context); in SetContainerTransparency()
1742 cairo_t* cairo_context = gdk_cairo_create(GDK_DRAWABLE(pixmap)); in SetContainerShapeMask() local
1745 cairo_set_source_rgba(cairo_context, 1, 1, 1, 0); in SetContainerShapeMask()
1749 cairo_set_operator(cairo_context, CAIRO_OPERATOR_SOURCE); in SetContainerShapeMask()
[all …]
/external/chromium/chrome/browser/ui/gtk/
Dcustom_button.cc90 cairo_t* cairo_context = gdk_cairo_create(GDK_DRAWABLE(widget->window)); in OnExpose() local
91 cairo_translate(cairo_context, widget->allocation.x, widget->allocation.y); in OnExpose()
95 cairo_translate(cairo_context, widget->allocation.width, 0.0f); in OnExpose()
96 cairo_scale(cairo_context, -1.0f, 1.0f); in OnExpose()
106 background_image_->SetSource(cairo_context, x, y); in OnExpose()
107 cairo_paint(cairo_context); in OnExpose()
110 pixbuf->SetSource(cairo_context, x, y); in OnExpose()
111 cairo_paint(cairo_context); in OnExpose()
114 hover_pixbuf->SetSource(cairo_context, x, y); in OnExpose()
115 cairo_paint_with_alpha(cairo_context, hover_state); in OnExpose()
[all …]