Home | History | Annotate | Download | only in ext

Lines Matching refs:surface

23 // Back the destination bitmap by a Cairo surface.  The bitmap's
24 // pixelRef takes ownership of the passed-in surface and will call
27 // Note: it may immediately destroy the surface, if it fails to create a bitmap
28 // with pixels, thus the caller must either ref() the surface before hand, or
29 // it must not refer to the surface after this call.
31 cairo_surface_t* surface,
34 if (!surface) {
38 = SkImageInfo::MakeN32Premul(cairo_image_surface_get_width(surface),
39 cairo_image_surface_get_height(surface));
41 cairo_image_surface_get_data(surface),
42 cairo_image_surface_get_stride(surface),
45 static_cast<void*>(surface));
101 cairo_surface_t* surface) {
102 if (cairo_surface_status(surface) != CAIRO_STATUS_SUCCESS) {
103 cairo_surface_destroy(surface);
107 // must call this before trying to install the surface, since that may result
108 // in the surface being destroyed.
109 cairo_t* cairo = cairo_create(surface);
112 if (!InstallCairoSurfacePixels(&bitmap, surface, is_opaque)) {
124 cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
127 BitmapPlatformDevice* device = Create(width, height, is_opaque, surface);
148 cairo_surface_t* surface = cairo_image_surface_create_for_data(
152 return Create(width, height, is_opaque, surface);
179 cairo_surface_t* surface = cairo_get_target(cairo_);
181 cairo_surface_flush(surface);
184 cairo_surface_mark_dirty(surface);
189 PlatformSurface surface, int x, int y, const PlatformRect* src_rect) {