aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurfacePriv.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-22 06:26:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-22 06:26:11 -0700
commit396fcdba14a0101ed43dcc3863585bf50c4ed6cc (patch)
tree2aaf20c22567931dd16dbe7f1779c0709d2bc62e /src/gpu/GrSurfacePriv.h
parenta5ba329c81dd6e21f8d610b56416d9f45259fa42 (diff)
Cleanup of code that converts from GPU-backed resources to SkImageInfo
Functions like GrMakeInfoFromTexture encouraged incorrect code to be written. Similarly, the ability to construct an info from any GrSurface was never going to be correct. Luckily, the only client of that had all of the correct parameters much higher on the stack (and dictated or replaced most of the properties of the returned info anyway). With this, I can finally remove the color space as an output of the pixel config -> color type conversion, which was never going to be correct. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2173513002 Review-Url: https://codereview.chromium.org/2173513002
Diffstat (limited to 'src/gpu/GrSurfacePriv.h')
-rw-r--r--src/gpu/GrSurfacePriv.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gpu/GrSurfacePriv.h b/src/gpu/GrSurfacePriv.h
index bff411edf3..f2ba7baca4 100644
--- a/src/gpu/GrSurfacePriv.h
+++ b/src/gpu/GrSurfacePriv.h
@@ -32,11 +32,6 @@ public:
int* left, int* top, int* width, int* height,
const void** data,
size_t* rowBytes);
- /**
- * Derive a SkImageInfo from the surface's descriptor. The caller must provide the alpha type as
- * GrSurface has no equivalent.
- */
- SkImageInfo info(SkAlphaType alphaType) const { return fSurface->info(alphaType); }
/**
* Write the contents of the surface to a PNG. Returns true if successful.