Home | History | Annotate | Download | only in hwui

Lines Matching refs:Gamma

62     // Get the gamma
65 INIT_LOGD(" Setting text gamma to %s", property);
68 INIT_LOGD(" Using default text gamma of %.2f", DEFAULT_TEXT_GAMMA);
71 // Get the black gamma threshold
74 INIT_LOGD(" Setting text black gamma threshold to %s", property);
77 INIT_LOGD(" Using default text black gamma threshold of %d",
81 // Get the white gamma threshold
84 INIT_LOGD(" Setting text white gamma threshold to %s", property);
87 INIT_LOGD(" Using default white black gamma threshold of %d",
100 INIT_LOGD("Creating shader gamma font renderer");
113 description.gamma = mGamma;
116 description.gamma = 1.0f / mGamma;
120 description.gamma = 1.0f / mGamma;
128 glUniform1f(program->getUniform("gamma"), description.gamma);
143 INIT_LOGD("Creating lookup gamma font renderer");
145 // Compute the gamma tables
146 const float gamma = 1.0f / mGamma;
149 mGammaTable[i] = uint8_t((float)::floor(pow(i / 255.0f, gamma) * 255.0f + 0.5f));
166 INIT_LOGD("Creating lookup3 gamma font renderer");
168 // Compute the gamma tables
235 FontRenderer* Lookup3GammaFontRenderer::getRenderer(Gamma gamma) {
236 FontRenderer* renderer = mRenderers[gamma];
239 mRenderers[gamma] = renderer;
240 renderer->setGammaTable(&mGammaTable[gamma * 256]);
242 mRenderersUsageCount[gamma]++;