278 279 con.renderCompositeTrapezoids(compRule, src.picture, 280 XRUtils.PictStandardA8, dst, renderReferenceX, 281 renderReferenceY, trapList); 282 } 283 284 public void XRRenderRectangles(XRSurfaceData dst, GrowableRectArray rects) { 285 if (xorEnabled) { 286 con.GCRectangles(dst.getXid(), dst.getGC(), rects); 287 } else { 288 con.renderRectangles(dst.getPicture(), compRule, solidColor, rects); 289 } 290 } 291 292 public void compositeBlit(XRSurfaceData src, XRSurfaceData dst, int sx, 293 int sy, int dx, int dy, int w, int h) { 294 con.renderComposite(compRule, src.picture, alphaMask, dst.picture, sx, 295 sy, 0, 0, dx, dy, w, h); 296 } 297 298 public void compositeText(int dst, int glyphSet, int maskFormat, 299 GrowableEltArray elts) { 300 con.XRenderCompositeText(compRule, src.picture, dst, maskFormat, 0, 0, 301 0, 0, glyphSet, elts); 302 } 303 304 public XRColor getMaskColor() { 305 return !isTexturePaintActive() ? XRColor.FULL_ALPHA : getAlphaColor(); 306 } 307 308 public int getExtraAlphaMask() { 309 return alphaMask; 310 } 311 312 public boolean isTexturePaintActive() { 313 return src == texture; 314 } 315 316 public XRColor getAlphaColor() { 317 return alphaColor; 318 } 319 320 public XRBackend getBackend() { 321 return con; | 278 279 con.renderCompositeTrapezoids(compRule, src.picture, 280 XRUtils.PictStandardA8, dst, renderReferenceX, 281 renderReferenceY, trapList); 282 } 283 284 public void XRRenderRectangles(XRSurfaceData dst, GrowableRectArray rects) { 285 if (xorEnabled) { 286 con.GCRectangles(dst.getXid(), dst.getGC(), rects); 287 } else { 288 con.renderRectangles(dst.getPicture(), compRule, solidColor, rects); 289 } 290 } 291 292 public void compositeBlit(XRSurfaceData src, XRSurfaceData dst, int sx, 293 int sy, int dx, int dy, int w, int h) { 294 con.renderComposite(compRule, src.picture, alphaMask, dst.picture, sx, 295 sy, 0, 0, dx, dy, w, h); 296 } 297 298 public void compositeText(XRSurfaceData dst, int sx, int sy, 299 int glyphSet, int maskFormat, GrowableEltArray elts) { 300 con.XRenderCompositeText(compRule, src.picture, dst.picture, 301 maskFormat, sx, sy, 0, 0, glyphSet, elts); 302 } 303 304 public XRColor getMaskColor() { 305 return !isTexturePaintActive() ? XRColor.FULL_ALPHA : getAlphaColor(); 306 } 307 308 public int getExtraAlphaMask() { 309 return alphaMask; 310 } 311 312 public boolean isTexturePaintActive() { 313 return src == texture; 314 } 315 316 public XRColor getAlphaColor() { 317 return alphaColor; 318 } 319 320 public XRBackend getBackend() { 321 return con; |