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

Unified Diff: src/gpu/gl/GrGLCaps.h

Issue 16452007: Use all available texture units. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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
Index: src/gpu/gl/GrGLCaps.h
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h
index 01fbceee0423baeb2a0411eba34429f844e65db5..c4342cd83917ee74868ffb00a83116fa485f2e45 100644
--- a/src/gpu/gl/GrGLCaps.h
+++ b/src/gpu/gl/GrGLCaps.h
@@ -215,9 +215,12 @@ public:
/// The maximum number of fragment uniform vectors (GLES has min. 16).
int maxFragmentUniformVectors() const { return fMaxFragmentUniformVectors; }
- // maximum number of attribute values per vertex
+ /// maximum number of attribute values per vertex
int maxVertexAttributes() const { return fMaxVertexAttributes; }
+ /// maximum number of textures units accessible in the fragment shader.
jvanverth1 2013/06/05 14:51:15 Typo (texture*s*).
bsalomon 2013/06/05 15:00:57 Done.
+ int maxFragmentTextureUnits() const { return fMaxFragmentTextureUnits; }
+
/// ES requires an extension to support RGBA8 in RenderBufferStorage
bool rgba8RenderbufferSupport() const { return fRGBA8RenderbufferSupport; }
@@ -332,6 +335,7 @@ private:
int fMaxFragmentUniformVectors;
int fMaxVertexAttributes;
+ int fMaxFragmentTextureUnits;
MSFBOType fMSFBOType;
CoverageAAType fCoverageAAType;

Powered by Google App Engine
This is Rietveld 408576698