Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.h
32287 views
/*1* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef _AWT_GRAPHICSENV_H_26#define _AWT_GRAPHICSENV_H_2728#include <jni_util.h>2930#ifndef HEADLESS31#define MITSHM32#endif /* !HEADLESS */3334#define UNSET_MITSHM (-2)35#define NOEXT_MITSHM (-1)36#define CANT_USE_MITSHM (0)37#define CAN_USE_MITSHM (1)3839#ifdef MITSHM4041#include <sys/ipc.h>42#include <sys/shm.h>43#include <X11/extensions/XShm.h>44#ifndef X_ShmAttach45#include <X11/Xmd.h>46#include <X11/extensions/shmproto.h>47#endif4849#define MITSHM_PERM_COMMON (0666)50#define MITSHM_PERM_OWNER (0600)5152extern int XShmQueryExtension();5354void TryInitMITShm(JNIEnv *env, jint *shmExt, jint *shmPixmaps);55void resetXShmAttachFailed();56jboolean isXShmAttachFailed();5758#endif /* MITSHM */5960/* fieldIDs for X11GraphicsConfig fields that may be accessed from C */61struct X11GraphicsConfigIDs {62jfieldID aData;63jfieldID bitsPerPixel;64jfieldID screen;65};6667/* fieldIDs for X11GraphicsDevice fields that may be accessed from C */68struct X11GraphicsDeviceIDs {69jfieldID screen;70};7172#endif /* _AWT_GRAPHICSENV_H_ */737475