aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrSurfaceProxy.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-05-15 21:23:13 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-17 13:27:12 +0000
commit63e7973d1f01bd03216659b9d2267f83a752c8fb (patch)
treeab2a84bb98d437e7cd48953a24979f31a88aa020 /include/private/GrSurfaceProxy.h
parent4d0dab9eca0d98de62c11bd31067dbf3f92e5c98 (diff)
Remove GrSurfaceProxy::desc()
Adds a numStencilSamples() getter. Bug: skia: Change-Id: I1e57f19b3cb490a6214ea436622ed8128a5a9303 Reviewed-on: https://skia-review.googlesource.com/16994 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/private/GrSurfaceProxy.h')
-rw-r--r--include/private/GrSurfaceProxy.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h
index 2d60c8d648..8b3779c4e9 100644
--- a/include/private/GrSurfaceProxy.h
+++ b/include/private/GrSurfaceProxy.h
@@ -188,8 +188,6 @@ public:
static sk_sp<GrTextureProxy> MakeWrappedBackend(GrContext*, GrBackendTexture&, GrSurfaceOrigin);
- const GrSurfaceDesc& desc() const { return fDesc; }
-
GrSurfaceOrigin origin() const {
SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin ||
kBottomLeft_GrSurfaceOrigin == fDesc.fOrigin);
@@ -198,6 +196,7 @@ public:
int width() const { return fDesc.fWidth; }
int height() const { return fDesc.fHeight; }
GrPixelConfig config() const { return fDesc.fConfig; }
+ bool isMipMapped() const { return fDesc.fIsMipMapped; }
class UniqueID {
public:
@@ -295,7 +294,7 @@ public:
// Helper function that creates a temporary SurfaceContext to perform the copy
// It always returns a kExact-backed proxy bc it is used when converting an SkSpecialImage
- // to an SkImage.
+ // to an SkImage. The copy is is not a render target and not multisampled.
static sk_sp<GrTextureProxy> Copy(GrContext*, GrSurfaceProxy* src,
SkIRect srcRect, SkBudgeted);