Java Code Examples for sun.awt.Win32GraphicsEnvironment#isDWMCompositionEnabled()

The following examples show how to use sun.awt.Win32GraphicsEnvironment#isDWMCompositionEnabled() . 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: WEmbeddedFramePeer.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 2
Source File: WEmbeddedFramePeer.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 3
Source File: WEmbeddedFramePeer.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 4
Source File: WEmbeddedFramePeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 5
Source File: WEmbeddedFramePeer.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 6
Source File: WEmbeddedFramePeer.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 7
Source File: WEmbeddedFramePeer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 8
Source File: WEmbeddedFramePeer.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 9
Source File: WEmbeddedFramePeer.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 10
Source File: WEmbeddedFramePeer.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 11
Source File: WToolkit.java    From jdk8u_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 12
Source File: WToolkit.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 13
Source File: WToolkit.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 14
Source File: WToolkit.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 15
Source File: WToolkit.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 16
Source File: WToolkit.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 17
Source File: WToolkit.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 18
Source File: WToolkit.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 19
Source File: WToolkit.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example 20
Source File: WToolkit.java    From jdk8u-dev-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * There are two reasons why we don't use buffer per window when
 * Vista's DWM (aka Aero) is enabled:
 * - since with DWM all windows are already double-buffered, the application
 *   doesn't get expose events so we don't get to use our true back-buffer,
 *   wasting memory and performance (this is valid for both d3d and gdi
 *   pipelines)
 * - in some cases with buffer per window enabled it is possible for the
 *   paint manager to redirect rendering to the screen for some operations
 *   (like copyArea), and since bpw uses its own BufferStrategy the
 *   d3d onscreen rendering support is disabled and rendering goes through
 *   GDI. This doesn't work well with Vista's DWM since one
 *   can not perform GDI and D3D operations on the same surface
 *   (see 6630702 for more info)
 *
 * Note: even though DWM composition state can change during the lifetime
 * of the application it is a rare event, and it is more often that it
 * is temporarily disabled (because of some app) than it is getting
 * permanently enabled so we can live with this approach without the
 * complexity of dwm state listeners and such. This can be revisited if
 * proved otherwise.
 */
@Override
public boolean useBufferPerWindow() {
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}