2685N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 2370N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2370N/A * This code is free software; you can redistribute it and/or modify it 2370N/A * under the terms of the GNU General Public License version 2 only, as 2685N/A * published by the Free Software Foundation. Oracle designates this 2370N/A * particular file as subject to the "Classpath" exception as provided 2685N/A * by Oracle in the LICENSE file that accompanied this code. 2370N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2370N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2370N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2370N/A * version 2 for more details (a copy is included in the LICENSE file that 2370N/A * You should have received a copy of the GNU General Public License version 2370N/A * 2 along with this work; if not, write to the Free Software Foundation, 2370N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2685N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2685N/A * or visit www.oracle.com if you need additional information or have any 2370N/A * We render non-antialiased geometry (consisting of rectangles) into a mask, 2370N/A * which is later used in a composition step. 2370N/A * To avoid mask-allocations of large size, MaskTileManager splits 2370N/A * geometry larger than MASK_SIZE into several tiles, 2370N/A * and stores the geometry in instances of MaskTile. 2370N/A * Adds a rectangle to the mask. 2370N/A * Transfers the geometry stored (rectangles, lines) to one or more masks, 2370N/A * and renders the result to the destination surface. 2370N/A // We don't need tiling if all geometry fits in a single tile 2370N/A * Clears the area of the mask-pixmap used for uploading aa coverage values. 2370N/A * Renders the rectangles provided to the mask, and does a composition 2370N/A * operation with the properties set inXRCompositeManager. 2370N/A * Optimization: When the tile only contains one rectangle, the 2370N/A * composite-operation boundaries can be used as geometry 2370N/A /* Clear dirty rectangle of the rect-mask */ 2370N/A * Allocates enough MaskTile instances, to cover the whole 2370N/A * mask area, or resets existing ones. 2370N/A * Tiles the stored rectangles, if they are larger than the MASK_SIZE 2370N/A * Limits the rect's coordinates to the mask coordinates. The result is used