aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTypes.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-07-19 18:28:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-20 00:21:18 +0000
commitd17f6584df9e48146dac28a1df56fb4978de6ba3 (patch)
treeaff8a4c10de409c9e07c09d936fd9c3b6b32cae3 /include/gpu/GrTypes.h
parent22b2d8c5e111825440fa3496be1cf030a5bbafd7 (diff)
Remove GrBackendTextureDesc
Change-Id: I2b123d1782400e97ab2ce2f11e3e3d325a13e6c8 Reviewed-on: https://skia-review.googlesource.com/24748 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrTypes.h')
-rw-r--r--include/gpu/GrTypes.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index e56cead9ce..a343f03817 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -635,7 +635,6 @@ enum GrClipType {
///////////////////////////////////////////////////////////////////////////////
-
/** Ownership rules for external GPU resources imported into Skia. */
enum GrWrapOwnership {
/** Skia will assume the client will keep the resource alive and Skia will not free it. */
@@ -645,60 +644,6 @@ enum GrWrapOwnership {
kAdopt_GrWrapOwnership,
};
-/**
- * Gr can wrap an existing texture created by the client with a GrTexture
- * object. The client is responsible for ensuring that the texture lives at
- * least as long as the GrTexture object wrapping it. We require the client to
- * explicitly provide information about the texture, such as width, height,
- * and pixel config, rather than querying the 3D APIfor these values. We expect
- * these to be immutable even if the 3D API doesn't require this (OpenGL).
- *
- * Textures that are also render targets are supported as well. Gr will manage
- * any ancillary 3D API (stencil buffer, FBO id, etc) objects necessary for
- * Gr to draw into the render target. To access the render target object
- * call GrTexture::asRenderTarget().
- *
- * If in addition to the render target flag, the caller also specifies a sample
- * count Gr will create an MSAA buffer that resolves into the texture. Gr auto-
- * resolves when it reads from the texture. The client can explictly resolve
- * using the GrRenderTarget interface.
- *
- * Note: These flags currently form a subset of GrTexture's flags.
- */
-
-enum GrBackendTextureFlags {
- /**
- * No flags enabled
- */
- kNone_GrBackendTextureFlag = 0,
- /**
- * Indicates that the texture is also a render target, and thus should have
- * a GrRenderTarget object.
- */
- kRenderTarget_GrBackendTextureFlag = kRenderTarget_GrSurfaceFlag,
-};
-GR_MAKE_BITFIELD_OPS(GrBackendTextureFlags)
-
-struct GrBackendTextureDesc {
- GrBackendTextureDesc() { memset(this, 0, sizeof(*this)); }
- GrBackendTextureFlags fFlags;
- GrSurfaceOrigin fOrigin;
- int fWidth; //<! width in pixels
- int fHeight; //<! height in pixels
- GrPixelConfig fConfig; //<! color format
- /**
- * If the render target flag is set and sample count is greater than 0
- * then Gr will create an MSAA buffer that resolves to the texture.
- */
- int fSampleCnt;
- /**
- * Handle to the 3D API object.
- * OpenGL: Texture ID.
- * Vulkan: GrVkImageInfo*
- */
- GrBackendObject fTextureHandle;
-};
-
///////////////////////////////////////////////////////////////////////////////
/**