Java Code Examples for sun.java2d.pipe.hw.AccelSurface#getContext()

The following examples show how to use sun.java2d.pipe.hw.AccelSurface#getContext() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BufferedContext.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 2
Source File: BufferedContext.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 3
Source File: BufferedContext.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext d3dc = dstData.getContext();
    d3dc.validate(srcData, dstData,
                  clip, comp, xform, paint, sg2d, flags);
}
 
Example 4
Source File: BufferedContext.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 5
Source File: BufferedContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 6
Source File: BufferedContext.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 7
Source File: BufferedContext.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 8
Source File: BufferedContext.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 9
Source File: BufferedContext.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext d3dc = dstData.getContext();
    d3dc.validate(srcData, dstData,
                  clip, comp, xform, paint, sg2d, flags);
}
 
Example 10
Source File: BufferedContext.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext d3dc = dstData.getContext();
    d3dc.validate(srcData, dstData,
                  clip, comp, xform, paint, sg2d, flags);
}
 
Example 11
Source File: BufferedContext.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext d3dc = dstData.getContext();
    d3dc.validate(srcData, dstData,
                  clip, comp, xform, paint, sg2d, flags);
}
 
Example 12
Source File: BufferedContext.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext context = dstData.getContext();
    context.validate(srcData, dstData,
                     clip, comp, xform, paint, sg2d, flags);
}
 
Example 13
Source File: BufferedContext.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext d3dc = dstData.getContext();
    d3dc.validate(srcData, dstData,
                  clip, comp, xform, paint, sg2d, flags);
}
 
Example 14
Source File: BufferedContext.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Fetches the BufferedContextContext associated with the dst. surface
 * and validates the context using the given parameters.  Most rendering
 * operations will call this method first in order to set the necessary
 * state before issuing rendering commands.
 *
 * Note: must be called while the RenderQueue lock is held.
 *
 * It's assumed that the type of surfaces has been checked by the Renderer
 *
 * @throws InvalidPipeException if either src or dest surface is not valid
 * or lost
 * @see RenderQueue#lock
 * @see RenderQueue#unlock
 */
public static void validateContext(AccelSurface srcData,
                                   AccelSurface dstData,
                                   Region clip, Composite comp,
                                   AffineTransform xform,
                                   Paint paint, SunGraphics2D sg2d,
                                   int flags)
{
    // assert rq.lock.isHeldByCurrentThread();
    BufferedContext d3dc = dstData.getContext();
    d3dc.validate(srcData, dstData,
                  clip, comp, xform, paint, sg2d, flags);
}