< prev index next >

src/java.desktop/unix/classes/sun/java2d/xr/XRBackend.java

Print this page
rev 48927 : Xrender: make aa tile mask handling a responsibility of the backend implementation
rev 48928 : Xrender: Introduction of the deferred backend, allows for accumulated AA mask upload.
rev 48932 : XRender: Update+introduce copyright statements + comments + unused import removal

*** 1,7 **** /* ! * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 26,47 **** package sun.java2d.xr; /** * XRender pipeline backend interface. * Currently there are two different backends implemented: - * - XRBackendJava: And experimental backend, generating protocol directly using java-code and xcb's socket handoff functionality. * - XRBackendNative: Native 1:1 binding with libX11. */ import java.awt.geom.*; import java.util.*; import sun.font.*; import sun.java2d.pipe.*; public interface XRBackend { public void freePicture(int picture); public void freePixmap(int pixmap); public int createPixmap(int drawable, int depth, int width, int height); --- 26,50 ---- package sun.java2d.xr; /** * XRender pipeline backend interface. * Currently there are two different backends implemented: * - XRBackendNative: Native 1:1 binding with libX11. + * - XRBackendDeferred: Deferrs protocol submission, so that aa tiles + * can be submitted in one go. */ import java.awt.geom.*; import java.util.*; import sun.font.*; import sun.java2d.pipe.*; public interface XRBackend { + public void initResources(int parentXID); + public void freePicture(int picture); public void freePixmap(int pixmap); public int createPixmap(int drawable, int depth, int width, int height);
*** 53,66 **** public void freeGC(long gc); /* TODO: Use!! */ public void copyArea(int src, int dst, long gc, int srcx, int srcy, int width, int height, int dstx, int dsty); ! public void putMaskImage(int drawable, long gc, byte[] imageData, ! int sx, int sy, int dx, int dy, ! int width, int height, int maskOff, ! int maskScan, float ea); public void setGCClipRectangles(long gc, Region clip); public void GCRectangles(int drawable, long gc, GrowableRectArray rects); --- 56,68 ---- public void freeGC(long gc); /* TODO: Use!! */ public void copyArea(int src, int dst, long gc, int srcx, int srcy, int width, int height, int dstx, int dsty); ! public void maskedComposite(byte op, int src, int eaMask, int dst, ! int srcX, int srcY, int dstX, int dstY, int width, ! int height, int maskScan, int maskOff, byte[] mask, float ea); public void setGCClipRectangles(long gc, Region clip); public void GCRectangles(int drawable, long gc, GrowableRectArray rects);
< prev index next >