diff options
author | 2018-02-22 13:41:37 -0700 | |
---|---|---|
committer | 2018-02-22 21:06:05 +0000 | |
commit | 2612baecd8c5b8deeaef18057a57562f45150023 (patch) | |
tree | 6dc6d1690d66d1136a51f9847e6f72d8dbc26c08 /include | |
parent | ee77da2c0bb44b92409d5eaf2b7ae7530f650a24 (diff) |
ccpr: Prefer atlas sizes under 4k on ARM
Bug: skia:
Change-Id: Ib5afb84647efe2e64a3ec2f9da422b39228431e9
Reviewed-on: https://skia-review.googlesource.com/108871
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrCaps.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h index 9d6ef0deaf..e8449bbcb4 100644 --- a/include/gpu/GrCaps.h +++ b/include/gpu/GrCaps.h @@ -133,7 +133,13 @@ public: int maxVertexAttributes() const { return fMaxVertexAttributes; } int maxRenderTargetSize() const { return fMaxRenderTargetSize; } + + /** This is the largest render target size that can be used without incurring extra perfomance + cost. It is usually the max RT size, unless larger render targets are known to be slower. */ + int maxPreferredRenderTargetSize() const { return fMaxPreferredRenderTargetSize; } + int maxTextureSize() const { return fMaxTextureSize; } + /** This is the maximum tile size to use by GPU devices for rendering sw-backed images/bitmaps. It is usually the max texture size, unless we're overriding it for testing. */ int maxTileSize() const { SkASSERT(fMaxTileSize <= fMaxTextureSize); return fMaxTileSize; } @@ -276,6 +282,7 @@ protected: int fBufferMapThreshold; int fMaxRenderTargetSize; + int fMaxPreferredRenderTargetSize; int fMaxVertexAttributes; int fMaxTextureSize; int fMaxTileSize; |