Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: include/gpu/GrCaps.h

Issue 1161183002: Stretch small textures up to 16 pixels on PowerVR 54x (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/gpu/GrContextOptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrCaps.h
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 25f3caadeda59e89d8317f089578d3038e1c5084..38cf9019cf390879dd64e162ee0afb13c0eec2e3 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -180,6 +180,9 @@ public:
int maxRenderTargetSize() const { return fMaxRenderTargetSize; }
int maxTextureSize() const { return fMaxTextureSize; }
+ /** 0 unless GPU has problems with small textures */
+ int minTextureSize() const { return fMinTextureSize; }
+
// Will be 0 if MSAA is not supported
int maxSampleCount() const { return fMaxSampleCount; }
@@ -229,6 +232,7 @@ protected:
int fMaxRenderTargetSize;
int fMaxTextureSize;
+ int fMinTextureSize;
int fMaxSampleCount;
// The first entry for each config is without msaa and the second is with.
« no previous file with comments | « no previous file | include/gpu/GrContextOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698