diff options
| author | 2014-07-01 17:56:52 -0700 | |
|---|---|---|
| committer | 2014-07-07 19:14:55 +0000 | |
| commit | 59744b79ec302000802cd56d30a1bf70f0183c80 (patch) | |
| tree | 0057de9a24def27ca543608cd1d5b75b1b89bd57 /libs/hwui/Caches.cpp | |
| parent | 904a1045ced36e844605b9764c3cb184976ea0a9 (diff) | |
Add hack for custom re-rasterization buckets
bug:14083128
Moves all of the font transform management into
OpenGLRenderer::findBestFontTransform(), and now simply passes down
final rasterization transforms into the FontRenderer.
Change-Id: Ie02752e6af863347b142367c7d628db5f9fc2998
Diffstat (limited to 'libs/hwui/Caches.cpp')
| -rw-r--r-- | libs/hwui/Caches.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp index 402f28bd3c5a..8e3c44457fdf 100644 --- a/libs/hwui/Caches.cpp +++ b/libs/hwui/Caches.cpp @@ -724,14 +724,18 @@ void Caches::setTempProperty(const char* name, const char* value) {          propertyLightDiameter = fmin(fmax(atof(value), 0.0), 3000.0);          ALOGD("lightDiameter = %.2f", propertyLightDiameter);          return; -    }  else if (!strcmp(name, "lightPosY")) { +    } else if (!strcmp(name, "lightPosY")) {          propertyLightPosY = fmin(fmax(atof(value), 0.0), 3000.0);          ALOGD("lightPos Y = %.2f", propertyLightPosY);          return; -    }  else if (!strcmp(name, "lightPosZ")) { +    } else if (!strcmp(name, "lightPosZ")) {          propertyLightPosZ = fmin(fmax(atof(value), 0.0), 3000.0);          ALOGD("lightPos Z = %.2f", propertyLightPosZ);          return; +    } else if (!strcmp(name, "extraRasterBucket")) { +        float bucket = atof(value); +        propertyExtraRasterBuckets.push_back(bucket); +        return;      }      ALOGD("    failed");  }  |