modules/graphics/src/main/java/com/sun/prism/ResourceFactory.java
Print this page
@@ -23,10 +23,11 @@
* questions.
*/
package com.sun.prism;
+import com.sun.prism.Texture.WrapMode;
import com.sun.prism.impl.TextureResourcePool;
import com.sun.prism.impl.VertexBuffer;
import com.sun.prism.shape.ShapeRep;
public interface ResourceFactory extends GraphicsResource {
@@ -202,10 +203,19 @@
* @return true if the given format is supported; false otherwise
*/
public boolean isFormatSupported(PixelFormat format);
/**
+ * Returns true iff the indicated {@link WrapMode wrap mode} is directly
+ * supported (i.e. not simulated) by the underlying pipeline and platform.
+ *
+ * @param mode the desired {@code WrapMode}
+ * @return true iff the wrap mode is supported and not simulated
+ */
+ public boolean isWrapModeSupported(WrapMode mode);
+
+ /**
* Returns the maximum supported texture dimension for this device.
* For example, if this method returns 2048, it means that textures
* larger than 2048x2048 cannot be created.
*
* @return the maximum supported texture dimension