Lines Matching refs:Key
54 class Key {
117 inline Key() : mKey(0) {} in Key() function
118 inline Key(const Key& rhs) : mKey(rhs.mKey) {} in Key() function
120 inline Key& set(key_t mask, key_t value) { in set()
156 if (inputTF == Key::INPUT_TF_SRGB && outputTF == Key::OUTPUT_TF_LINEAR) { in needsToneMapping()
159 if (inputTF == Key::INPUT_TF_LINEAR && outputTF == Key::OUTPUT_TF_SRGB) { in needsToneMapping()
163 inputTF >>= Key::INPUT_TF_SHIFT; in needsToneMapping()
164 outputTF >>= Key::OUTPUT_TF_SHIFT; in needsToneMapping()
171 bool operator==(const Key& other) const { return mKey == other.mKey; }
174 size_t operator()(const Key& key) const { return static_cast<size_t>(key.mKey); } in operator()
192 static Key computeKey(const Description& description);
194 static void generateEOTF(Formatter& fs, const Key& needs);
196 static void generateToneMappingProcess(Formatter& fs, const Key& needs);
198 static void generateOOTF(Formatter& fs, const Key& needs);
200 static void generateOETF(Formatter& fs, const Key& needs);
202 static std::unique_ptr<Program> generateProgram(const Key& needs);
204 static String8 generateVertexShader(const Key& needs);
206 static String8 generateFragmentShader(const Key& needs);
210 std::unordered_map<EGLContext, std::unordered_map<Key, std::unique_ptr<Program>, Key::Hash>>
217 ANDROID_BASIC_TYPES_TRAITS(renderengine::gl::ProgramCache::Key)