The effect of replacing $x$ in $\cos x$ with $x + a y - a$ is a shear. In particular, this shear can be represented by the (homogeneous matrix)
$$ M = \begin{pmatrix} 1 & a & -a \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} $$
since
$$ \begin{pmatrix} \tilde{x} \\ \tilde{y} \\ 1 \end{pmatrix} = M \cdot \begin{pmatrix} x \\ y \\ 1 \end{pmatrix} = \begin{pmatrix} x + ay - a \\ y \\ 1\end{pmatrix} $$
That is, given coordinates $(x,y)$ of a point of the graph of $y = \cos x$, its image under the shear gives the coordinates $(\tilde{x}, \tilde{y})$ of a point on the graph $\tilde{y} = \cos(\tilde{x}+a\tilde{y}-a)$.
This matrix applies a linear map. The effect of a linear map on area is given by its determinant -- if the determinant is, say, $2$, the map doubles areas. So we compute the determinant of our map. Using he first column for expansion by minors should minimize computation. We find
$$ \det M = 1 \begin{vmatrix} 1 & 0 \\ 0 & 1 \end{vmatrix} + 0 \cdot | \dots | + 0 \cdot | \dots | = 1 \text{.} $$
This says that areas are unchanged when we apply this shear. Therefore, we only need to be able to integrate the unsheared cosine, but with (reverse) sheared bounds of integration. A picture might help.
Here's a plot of $y = \cos(x + ay - a)$ with $a = 1/2$.

Say we want the integral from $1$ to $4$. The left and right edges of the area we want are vertical on this graph.

But on the unsheared graph, they are not.

The resulting area is a triangular region on the left, a usual integral between the points where the bounds meet the unsheared cosine graph, plus a traingular region on the right. (Notice that the left triangular region is negative if the point where it meets $\cos x$ has negative height. Similarly, for the right endpoint if that line meets cosine at positive height.)
So you integrate this by finding where the unsheared bounds meet the unmodified cosine graph, computing the usual integral between those bounds, then correcting by these two triangle areas.