Lines Matching refs:Key
43 * Key is used to retrieve a Program in the cache.
44 * A Key is generated from a Description.
46 class Key {
74 inline Key() : mKey(0) { }
75 inline Key(const Key& rhs) : mKey(rhs.mKey) { }
77 inline Key& set(key_t mask, key_t value) {
102 friend inline int strictly_order_type(const Key& lhs, const Key& rhs) {
117 // compute a cache Key from a Description
118 static Key computeKey(const Description& description);
119 // generates a program from the Key
120 static Program* generateProgram(const Key& needs);
121 // generates the vertex shader from the Key
122 static String8 generateVertexShader(const Key& needs);
123 // generates the fragment shader from the Key
124 static String8 generateFragmentShader(const Key& needs);
126 // Key/Value map used for caching Programs. Currently the cache
128 DefaultKeyedVector<Key, Program*> mCache;
132 ANDROID_BASIC_TYPES_TRAITS(ProgramCache::Key)