135c4bbdfSmrg/* 235c4bbdfSmrg * Copyright © 2014 Keith Packard 335c4bbdfSmrg * 435c4bbdfSmrg * Permission to use, copy, modify, distribute, and sell this software and its 535c4bbdfSmrg * documentation for any purpose is hereby granted without fee, provided that 635c4bbdfSmrg * the above copyright notice appear in all copies and that both that copyright 735c4bbdfSmrg * notice and this permission notice appear in supporting documentation, and 835c4bbdfSmrg * that the name of the copyright holders not be used in advertising or 935c4bbdfSmrg * publicity pertaining to distribution of the software without specific, 1035c4bbdfSmrg * written prior permission. The copyright holders make no representations 1135c4bbdfSmrg * about the suitability of this software for any purpose. It is provided "as 1235c4bbdfSmrg * is" without express or implied warranty. 1335c4bbdfSmrg * 1435c4bbdfSmrg * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1535c4bbdfSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1635c4bbdfSmrg * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1735c4bbdfSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1835c4bbdfSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1935c4bbdfSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 2035c4bbdfSmrg * OF THIS SOFTWARE. 2135c4bbdfSmrg */ 2235c4bbdfSmrg 2335c4bbdfSmrg#ifndef _GLAMOR_PREPARE_H_ 2435c4bbdfSmrg#define _GLAMOR_PREPARE_H_ 2535c4bbdfSmrg 2635c4bbdfSmrgBool 2735c4bbdfSmrgglamor_prepare_access(DrawablePtr drawable, glamor_access_t access); 2835c4bbdfSmrg 2935c4bbdfSmrgBool 3035c4bbdfSmrgglamor_prepare_access_box(DrawablePtr drawable, glamor_access_t access, 3135c4bbdfSmrg int x, int y, int w, int h); 3235c4bbdfSmrg 3335c4bbdfSmrgvoid 3435c4bbdfSmrgglamor_finish_access(DrawablePtr drawable); 3535c4bbdfSmrg 3635c4bbdfSmrgBool 3735c4bbdfSmrgglamor_prepare_access_picture(PicturePtr picture, glamor_access_t access); 3835c4bbdfSmrg 3935c4bbdfSmrgBool 4035c4bbdfSmrgglamor_prepare_access_picture_box(PicturePtr picture, glamor_access_t access, 4135c4bbdfSmrg int x, int y, int w, int h); 4235c4bbdfSmrg 4335c4bbdfSmrgvoid 4435c4bbdfSmrgglamor_finish_access_picture(PicturePtr picture); 4535c4bbdfSmrg 4635c4bbdfSmrgBool 4735c4bbdfSmrgglamor_prepare_access_gc(GCPtr gc); 4835c4bbdfSmrg 4935c4bbdfSmrgvoid 5035c4bbdfSmrgglamor_finish_access_gc(GCPtr gc); 5135c4bbdfSmrg 5235c4bbdfSmrg#endif /* _GLAMOR_PREPARE_H_ */ 53