diff options
author | John Reck <jreck@google.com> | 2018-05-07 08:12:07 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-05-09 11:39:37 -0700 |
commit | e170fb6686c3e88cee6e32f4e3eb12fcf9bfe931 (patch) | |
tree | bf0ccbbcd2f89ccb468b216e14670451fedc3221 /libs/hwui/PathParser.cpp | |
parent | 33f4f1cb1645635f8b5c369e1dddda84e0396c34 (diff) |
A better HW Bitmap uploader
Move all HW bitmap upload operations off of RenderThread.
Ensure EGL context outlives all upload requests
Bug: 79250950
Test: builds, boots, systrace is good, CTS bitmap tests pass
Change-Id: I5ace6c516d33b1afdf1a407cd8b183f6b60c22c1
Diffstat (limited to 'libs/hwui/PathParser.cpp')
-rw-r--r-- | libs/hwui/PathParser.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/hwui/PathParser.cpp b/libs/hwui/PathParser.cpp index 47fcca92bcca..ad599e9ec316 100644 --- a/libs/hwui/PathParser.cpp +++ b/libs/hwui/PathParser.cpp @@ -210,9 +210,8 @@ void PathParser::validateVerbAndPoints(char verb, size_t points, PathParser::Par if (numberOfPointsExpected > 0) { result->failureMessage += "a multiple of "; } - result->failureMessage += std::to_string(numberOfPointsExpected) - + " floats. However, " + std::to_string(points) - + " float(s) are found. "; + result->failureMessage += std::to_string(numberOfPointsExpected) + " floats. However, " + + std::to_string(points) + " float(s) are found. "; } void PathParser::getPathDataFromAsciiString(PathData* data, ParseResult* result, @@ -242,8 +241,8 @@ void PathParser::getPathDataFromAsciiString(PathData* data, ParseResult* result, validateVerbAndPoints(pathStr[start], points.size(), result); if (result->failureOccurred) { // If either verb or points is not valid, return immediately. - result->failureMessage += "Failure occurred at position " + - std::to_string(start) + " of path: " + pathStr; + result->failureMessage += "Failure occurred at position " + std::to_string(start) + + " of path: " + pathStr; return; } data->verbs.push_back(pathStr[start]); @@ -257,8 +256,8 @@ void PathParser::getPathDataFromAsciiString(PathData* data, ParseResult* result, validateVerbAndPoints(pathStr[start], 0, result); if (result->failureOccurred) { // If either verb or points is not valid, return immediately. - result->failureMessage += "Failure occurred at position " + - std::to_string(start) + " of path: " + pathStr; + result->failureMessage += "Failure occurred at position " + std::to_string(start) + + " of path: " + pathStr; return; } data->verbs.push_back(pathStr[start]); |