Lines Matching refs:Key
44 * Key is used to retrieve a Program in the cache.
45 * A Key is generated from a Description.
47 class Key {
105 inline Key() : mKey(0) {}
106 inline Key(const Key& rhs) : mKey(rhs.mKey) {}
108 inline Key& set(key_t mask, key_t value) {
141 if (inputTF == Key::INPUT_TF_SRGB && outputTF == Key::OUTPUT_TF_LINEAR) {
144 if (inputTF == Key::INPUT_TF_LINEAR && outputTF == Key::OUTPUT_TF_SRGB) {
148 inputTF >>= Key::INPUT_TF_SHIFT;
149 outputTF >>= Key::OUTPUT_TF_SHIFT;
155 friend inline int strictly_order_type(const Key& lhs, const Key& rhs) {
171 // compute a cache Key from a Description
172 static Key computeKey(const Description& description);
173 // Generate EOTF based from Key.
174 static void generateEOTF(Formatter& fs, const Key& needs);
176 static void generateToneMappingProcess(Formatter& fs, const Key& needs);
177 // Generate OOTF based from Key.
178 static void generateOOTF(Formatter& fs, const Key& needs);
179 // Generate OETF based from Key.
180 static void generateOETF(Formatter& fs, const Key& needs);
181 // generates a program from the Key
182 static Program* generateProgram(const Key& needs);
183 // generates the vertex shader from the Key
184 static String8 generateVertexShader(const Key& needs);
185 // generates the fragment shader from the Key
186 static String8 generateFragmentShader(const Key& needs);
188 // Key/Value map used for caching Programs. Currently the cache
190 DefaultKeyedVector<Key, Program*> mCache;
193 ANDROID_BASIC_TYPES_TRAITS(ProgramCache::Key)