/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* D3D-specific implementation of RenderQueue.
*/
private D3DRenderQueue() {
}
/**
* Returns the single D3DRenderQueue instance. If it has not yet been
* initialized, this method will first construct the single instance
* before returning it.
*/
if (theInstance == null) {
theInstance = new D3DRenderQueue();
// no need to lock, noone has reference to this instance yet
public void run() {
}
});
}
return theInstance;
}
/**
* Flushes the single D3DRenderQueue instance synchronously. If an
* D3DRenderQueue has not yet been instantiated, this method is a no-op.
* This method is useful in the case of Toolkit.sync(), in which we want
* to flush the D3D pipeline, but only if the D3D pipeline is currently
* enabled. Since this class has few external dependencies, callers need
* not be concerned that calling this method will trigger initialization
* of the D3D pipeline and related classes.
*/
public static void sync() {
if (theInstance != null) {
// to completing the sync operation
mgr.runUpdateNow();
theInstance.lock();
try {
} finally {
}
}
}
/**
* Attempt to restore the devices if they're in the lost state.
* (used when a full-screen window is activated/deactivated)
*/
public static void restoreDevices() {
try {
} finally {
}
}
/**
* @return true if current thread is the render queue thread,
* false otherwise
*/
public static boolean isRenderQueueThread() {
}
/**
* Disposes the native memory associated with the given native
* graphics config info pointer on the single queue flushing thread.
*/
try {
// this call is expected to complete synchronously, so flush now
} finally {
}
}
public void flushNow() {
// assert lock.isHeldByCurrentThread();
}
// assert lock.isHeldByCurrentThread();
flushBuffer(r);
}
// assert lock.isHeldByCurrentThread();
// process the queue
}
// reset the buffer position
// clear the set of references, since we no longer need them
}
}