aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-04-05 12:46:09 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-05 17:21:32 +0000
commitf932a6328a3985495e3377f34a542b22be1e1ced (patch)
tree267153be2317129a3ef755882cd45e265eb82b3b /include/gpu
parentc659c2c30d2a33392f62bb9a27ff04a07d216976 (diff)
Add maxTextureSize()/maxRenderTargetSize() to GrContext
This provides an alternative way to access these values which will allow removal GrContext::caps() from public API Change-Id: I53d3c00563da8847e1fc14aea9750dc9fd90d1e5 Reviewed-on: https://skia-review.googlesource.com/118962 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrContext.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 2e5225bd3f..0ebfd7c979 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -207,6 +207,16 @@ public:
const GrCaps* caps() const { return fCaps.get(); }
/**
+ * Gets the maximum supported texture size.
+ */
+ int maxTextureSize() const;
+
+ /**
+ * Gets the maximum supported render target size.
+ */
+ int maxRenderTargetSize() const;
+
+ /**
* Can a SkImage be created with the given color type.
*/
bool colorTypeSupportedAsImage(SkColorType) const;