D3DSurfaceData.cpp revision 862
430N/A * Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Sun designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Sun in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * have any questions. 430N/A * dimensions on the native surface. 430N/A * This is the implementation of the general surface LockFunc defined in 430N/A * This is the implementation of the general GetRasInfoFunc defined in 430N/A * This is the implementation of the general surface UnlockFunc defined in 430N/A// ------------ D3DSurfaceData's JNI methods ---------------- 0N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Method: initFlipBackbuffer 430N/A "D3DSurfaceData_initFlipBackbuffer: disposed component");
430N/A // in full-screen mode we should v-sync 430N/A " windowed, forced interval: ONE");
430N/A " windowed, default interval: IMMEDIATE");
430N/A // REMIND: this is a workaround for the current issue 430N/A // we have with non-copy flip chains: since we can not specify 430N/A // the dest rectangle for Present for these modes, the result of 430N/A // Present(NULL, NULL) is scaled to the client area. 430N/A " full-screen, forced interval: IMMEDIATE");
430N/A " full-screen, default interval: ONE");
0N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Method: dbGetPixelNative 430N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Method: dbSetPixelNative 430N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Method: getNativeResourceNative 430N/A * Class: sun_java2d_d3d_D3DSurfaceData 430N/A * Method: updateWindowAccelImpl 430N/A if (w <= 0 || h <= 0) {
430N/A // REMIND: commented until translucent window support is integrated 430N/A// BitmapUtil::CreateBitmapFromARGBPre(w, h, 430N/A// (int*)lockedRect.pBits); 430N/A // REMIND: commented until translucent window support is integrated 430N/A// window->UpdateWindow(env, NULL, w, h, hBitmap); 430N/A // hBitmap is released in UpdateWindow