• Home
  • Raw
  • Download

Lines Matching refs:Key

86         Key shaderKey;  in primeCache()
88 shaderKey.set(Key::BLEND_MASK | Key::INPUT_TRANSFORM_MATRIX_MASK | in primeCache()
89 Key::OUTPUT_TRANSFORM_MATRIX_MASK | Key::OUTPUT_TF_MASK | in primeCache()
90 Key::OPACITY_MASK | Key::ALPHA_MASK | in primeCache()
91 Key::ROUNDED_CORNERS_MASK | Key::TEXTURE_MASK, in primeCache()
92 Key::BLEND_NORMAL | Key::INPUT_TRANSFORM_MATRIX_ON | in primeCache()
93 Key::OUTPUT_TRANSFORM_MATRIX_ON | Key::OUTPUT_TF_SRGB | in primeCache()
94 Key::OPACITY_OPAQUE | Key::ALPHA_EQ_ONE | in primeCache()
95 Key::ROUNDED_CORNERS_OFF | Key::TEXTURE_EXT); in primeCache()
98 shaderKey.set(Key::INPUT_TF_MASK, (i & 1) ? in primeCache()
99 Key::INPUT_TF_HLG : Key::INPUT_TF_ST2084); in primeCache()
102 shaderKey.set(Key::Y410_BT2020_MASK, (i & 2) ? in primeCache()
103 Key::Y410_BT2020_ON : Key::Y410_BT2020_OFF); in primeCache()
112 uint32_t keyMask = Key::BLEND_MASK | Key::OPACITY_MASK | Key::ALPHA_MASK | Key::TEXTURE_MASK in primeCache()
113 | Key::ROUNDED_CORNERS_MASK; in primeCache()
119 Key shaderKey; in primeCache()
122 if (tex != Key::TEXTURE_OFF && tex != Key::TEXTURE_EXT && tex != Key::TEXTURE_2D) { in primeCache()
133 Key shaderKey; in primeCache()
134 shaderKey.set(Key::BLEND_MASK | Key::OUTPUT_TRANSFORM_MATRIX_MASK | Key::INPUT_TF_MASK | in primeCache()
135 Key::OUTPUT_TF_MASK, in primeCache()
136 Key::BLEND_PREMULT | Key::OUTPUT_TRANSFORM_MATRIX_ON | Key::INPUT_TF_SRGB | in primeCache()
137 Key::OUTPUT_TF_SRGB); in primeCache()
139 shaderKey.set(Key::OPACITY_MASK, in primeCache()
140 (i & 1) ? Key::OPACITY_OPAQUE : Key::OPACITY_TRANSLUCENT); in primeCache()
141 shaderKey.set(Key::ALPHA_MASK, (i & 2) ? Key::ALPHA_LT_ONE : Key::ALPHA_EQ_ONE); in primeCache()
144 shaderKey.set(Key::ROUNDED_CORNERS_MASK, in primeCache()
145 (i & 4) ? Key::ROUNDED_CORNERS_ON : Key::ROUNDED_CORNERS_OFF); in primeCache()
148 shaderKey.set(Key::TEXTURE_MASK, (i & 8) ? Key::TEXTURE_EXT : Key::TEXTURE_OFF); in primeCache()
161 ProgramCache::Key ProgramCache::computeKey(const Description& description) { in computeKey()
162 Key needs; in computeKey()
163 needs.set(Key::TEXTURE_MASK, in computeKey()
165 ? Key::TEXTURE_OFF in computeKey()
167 ? Key::TEXTURE_EXT in computeKey()
169 ? Key::TEXTURE_2D in computeKey()
170 : Key::TEXTURE_OFF) in computeKey()
171 .set(Key::ALPHA_MASK, (description.color.a < 1) ? Key::ALPHA_LT_ONE : Key::ALPHA_EQ_ONE) in computeKey()
172 .set(Key::BLEND_MASK, in computeKey()
173 description.isPremultipliedAlpha ? Key::BLEND_PREMULT : Key::BLEND_NORMAL) in computeKey()
174 .set(Key::OPACITY_MASK, in computeKey()
175 description.isOpaque ? Key::OPACITY_OPAQUE : Key::OPACITY_TRANSLUCENT) in computeKey()
176 .set(Key::Key::INPUT_TRANSFORM_MATRIX_MASK, in computeKey()
177 description.hasInputTransformMatrix() ? Key::INPUT_TRANSFORM_MATRIX_ON in computeKey()
178 : Key::INPUT_TRANSFORM_MATRIX_OFF) in computeKey()
179 .set(Key::Key::OUTPUT_TRANSFORM_MATRIX_MASK, in computeKey()
181 ? Key::OUTPUT_TRANSFORM_MATRIX_ON in computeKey()
182 : Key::OUTPUT_TRANSFORM_MATRIX_OFF) in computeKey()
183 .set(Key::Key::DISPLAY_COLOR_TRANSFORM_MATRIX_MASK, in computeKey()
184 description.hasDisplayColorMatrix() ? Key::DISPLAY_COLOR_TRANSFORM_MATRIX_ON in computeKey()
185 : Key::DISPLAY_COLOR_TRANSFORM_MATRIX_OFF) in computeKey()
186 .set(Key::ROUNDED_CORNERS_MASK, in computeKey()
187 description.cornerRadius > 0 ? Key::ROUNDED_CORNERS_ON : Key::ROUNDED_CORNERS_OFF) in computeKey()
188 .set(Key::SHADOW_MASK, description.drawShadows ? Key::SHADOW_ON : Key::SHADOW_OFF); in computeKey()
189 needs.set(Key::Y410_BT2020_MASK, in computeKey()
190 description.isY410BT2020 ? Key::Y410_BT2020_ON : Key::Y410_BT2020_OFF); in computeKey()
197 needs.set(Key::INPUT_TF_MASK, Key::INPUT_TF_LINEAR); in computeKey()
200 needs.set(Key::INPUT_TF_MASK, Key::INPUT_TF_SRGB); in computeKey()
203 needs.set(Key::INPUT_TF_MASK, Key::INPUT_TF_ST2084); in computeKey()
206 needs.set(Key::INPUT_TF_MASK, Key::INPUT_TF_HLG); in computeKey()
213 needs.set(Key::OUTPUT_TF_MASK, Key::OUTPUT_TF_LINEAR); in computeKey()
216 needs.set(Key::OUTPUT_TF_MASK, Key::OUTPUT_TF_SRGB); in computeKey()
219 needs.set(Key::OUTPUT_TF_MASK, Key::OUTPUT_TF_ST2084); in computeKey()
222 needs.set(Key::OUTPUT_TF_MASK, Key::OUTPUT_TF_HLG); in computeKey()
232 void ProgramCache::generateEOTF(Formatter& fs, const Key& needs) { in generateEOTF()
234 case Key::INPUT_TF_SRGB: in generateEOTF()
249 case Key::INPUT_TF_ST2084: in generateEOTF()
264 case Key::INPUT_TF_HLG: in generateEOTF()
290 void ProgramCache::generateToneMappingProcess(Formatter& fs, const Key& needs) { in generateToneMappingProcess()
293 case Key::INPUT_TF_ST2084: in generateToneMappingProcess()
300 case Key::INPUT_TF_HLG: in generateToneMappingProcess()
321 case Key::INPUT_TF_ST2084: in generateToneMappingProcess()
322 case Key::INPUT_TF_HLG: in generateToneMappingProcess()
324 case Key::OUTPUT_TF_HLG: in generateToneMappingProcess()
334 case Key::OUTPUT_TF_ST2084: in generateToneMappingProcess()
451 case Key::OUTPUT_TF_ST2084: in generateToneMappingProcess()
458 case Key::OUTPUT_TF_HLG: in generateToneMappingProcess()
476 void ProgramCache::generateOOTF(Formatter& fs, const ProgramCache::Key& needs) { in generateOOTF()
495 void ProgramCache::generateOETF(Formatter& fs, const Key& needs) { in generateOETF()
497 case Key::OUTPUT_TF_SRGB: in generateOETF()
513 case Key::OUTPUT_TF_ST2084: in generateOETF()
528 case Key::OUTPUT_TF_HLG: in generateOETF()
554 String8 ProgramCache::generateVertexShader(const Key& needs) { in generateVertexShader()
588 String8 ProgramCache::generateFragmentShader(const Key& needs) { in generateFragmentShader()
590 if (needs.getTextureTarget() == Key::TEXTURE_EXT) { in generateFragmentShader()
597 if (needs.getTextureTarget() == Key::TEXTURE_EXT) { in generateFragmentShader()
599 } else if (needs.getTextureTarget() == Key::TEXTURE_2D) { in generateFragmentShader()
649 if (needs.getTextureTarget() == Key::TEXTURE_OFF || needs.hasAlpha()) { in generateFragmentShader()
791 std::unique_ptr<Program> ProgramCache::generateProgram(const Key& needs) { in generateProgram()
805 Key needs(computeKey(description)); in useProgram()