< prev index next >

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

Print this page
rev 48927 : Xrender: make aa tile mask handling a responsibility of the backend implementation
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
*** 80,94 **** XRCompositeManager maskBuffer = x11sd.maskBuffer; XRSurfaceData x11dst = (XRSurfaceData) dst; x11dst.validateAsDestination(null, clip); ! int maskPict = maskBuffer.getMaskBuffer(). ! uploadMask(width, height, maskscan, maskoff, mask); ! maskBuffer.XRComposite(x11sd.getPicture(), maskPict, x11dst.getPicture(), ! srcx, srcy, 0, 0, dstx, dsty, width, height); ! maskBuffer.getMaskBuffer().clearUploadMask(maskPict, width, height); } finally { SunToolkit.awtUnlock(); } } } --- 80,90 ---- XRCompositeManager maskBuffer = x11sd.maskBuffer; XRSurfaceData x11dst = (XRSurfaceData) dst; x11dst.validateAsDestination(null, clip); ! maskBuffer.XRMaskedComposite(XRUtils.None, x11sd.picture, srcx, srcy, dstx, dsty, width, height, maskscan, maskoff, mask); } finally { SunToolkit.awtUnlock(); } } }
< prev index next >