Java Code Examples for sun.java2d.SurfaceData#markDirty()

The following examples show how to use sun.java2d.SurfaceData#markDirty() . 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: D3DSurfaceData.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 2
Source File: D3DSurfaceData.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 3
Source File: D3DSurfaceData.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 4
Source File: D3DSurfaceData.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 5
Source File: D3DSurfaceData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 6
Source File: D3DSurfaceData.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 7
Source File: D3DSurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 8
Source File: D3DSurfaceData.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 9
Source File: D3DSurfaceData.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 10
Source File: D3DSurfaceData.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 11
Source File: D3DSurfaceData.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 12
Source File: D3DSurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}
 
Example 13
Source File: D3DSurfaceData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
protected void setElem(final int x, final int y, final int pixel,
                       final SurfaceData sData)
{
    if (sData.isSurfaceLost()) {
          return;
    }

    D3DRenderQueue rq = D3DRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                dbSetPixelNative(sData.getNativeOps(), x, y, pixel);
            }
        });
        sData.markDirty();
    } finally {
        rq.unlock();
    }
}