jdk/src/windows/native/sun/java2d/windows/dxInit.h
changeset 1024 2253d6d6cf2c
parent 1023 9a1c25552b10
parent 945 6838c1a3296a
child 1025 a9ba5ea0f1f7
equal deleted inserted replaced
1023:9a1c25552b10 1024:2253d6d6cf2c
     1 /*
       
     2  * Copyright 2003-2005 Sun Microsystems, Inc.  All Rights Reserved.
       
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4  *
       
     5  * This code is free software; you can redistribute it and/or modify it
       
     6  * under the terms of the GNU General Public License version 2 only, as
       
     7  * published by the Free Software Foundation.  Sun designates this
       
     8  * particular file as subject to the "Classpath" exception as provided
       
     9  * by Sun in the LICENSE file that accompanied this code.
       
    10  *
       
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    14  * version 2 for more details (a copy is included in the LICENSE file that
       
    15  * accompanied this code).
       
    16  *
       
    17  * You should have received a copy of the GNU General Public License version
       
    18  * 2 along with this work; if not, write to the Free Software Foundation,
       
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    20  *
       
    21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
       
    22  * CA 95054 USA or visit www.sun.com if you need additional information or
       
    23  * have any questions.
       
    24  */
       
    25 
       
    26 #ifndef DXINIT_H
       
    27 #define DXINIT_H
       
    28 
       
    29 #include "Win32SurfaceData.h"
       
    30 #include "Trace.h"
       
    31 #include "awt_MMStub.h"
       
    32 #include "dxCapabilities.h"
       
    33 
       
    34 // Registry definitions: these values are used to determine whether
       
    35 // acceleration components are untested, working, or broken, depending
       
    36 // on the results of testing
       
    37 #define J2D_ACCEL_KEY_ROOT L"Software\\JavaSoft\\Java2D\\"
       
    38 #define J2D_ACCEL_DRIVER_SUBKEY L"Drivers\\"
       
    39 #define J2D_ACCEL_DX_NAME L"DXAcceleration"
       
    40 
       
    41 void    InitDirectX();
       
    42 
       
    43 void    GetDeviceKeyName(_DISPLAY_DEVICE *displayDevice, WCHAR *devName);
       
    44 
       
    45 void    CheckFlags();
       
    46 
       
    47 void    CheckRegistry();
       
    48 
       
    49 BOOL    DDSetupDevice(DDrawObjectStruct *tmpDdInstance, DxCapabilities *dxCaps);
       
    50 
       
    51 DDrawObjectStruct *CreateDevice(GUID *lpGUID, HMONITOR hMonitor);
       
    52 
       
    53 BOOL CALLBACK EnumDeviceCallback(GUID FAR* lpGUID, LPSTR szName, LPSTR szDevice,
       
    54                                  LPVOID lParam, HMONITOR hMonitor);
       
    55 
       
    56 BOOL    DDCreateObject();
       
    57 
       
    58 #endif DXINIT_H