Phoc.Surface.add_damage

### Method

# Phoc Surfaceadd_damage

#### Declaration [src]

    void
    phoc_surface_add_damage (
      PhocSurface* self,
      pixman_region32_t* damage
    )

#### Description [src]

Adds the given region to the surface’s damaged region. The damage will be collected by the `phoc_*_apply_damage()` functions. The damaged region is not clipped to the surface.

This is used to add damage triggered by e.g. surface moves or unmaps (as opposed to buffer damage submitted by the client).

This method is not directly available to language bindings.

#### Parameters

`damage`

  Type: `pixman_region32_t*`

  The region in surface local coordinates.

  The data is owned by the caller of the method.