diff options
author | Chris Wailes <chriswailes@google.com> | 2014-07-28 16:54:38 -0700 |
---|---|---|
committer | Chris Wailes <chriswailes@google.com> | 2014-08-18 15:12:32 -0700 |
commit | 93d6bc872b7d9fba63abfa7513d56b38d9c3d371 (patch) | |
tree | 0a99fbd58c3254f82ffa1600f653aeac81c55d03 /rsScriptC.cpp | |
parent | 70d4971878444fe7cf4263998b0c3f46e2b6c71f (diff) | |
download | rs-93d6bc872b7d9fba63abfa7513d56b38d9c3d371.tar.gz |
Replaced android::Vector with std::vector.
Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r-- | rsScriptC.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp index 892807bd..2958e84e 100644 --- a/rsScriptC.cpp +++ b/rsScriptC.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#include <string> + #include "rsContext.h" #include "rsScriptC.h" @@ -165,15 +167,14 @@ void ScriptC::runForEach(Context *rsc, // Trace this function call. // To avoid overhead we only build the string if tracing is actually // enabled. - String8 *AString = NULL; - const char *String = ""; + std::string *traceString = NULL; + const char *stringData = ""; if (ATRACE_ENABLED()) { - AString = new String8("runForEach_"); - AString->append(mHal.info.exportedForeachFuncList[slot].first); - String = AString->string(); + traceString = new std::string("runForEach_"); + traceString->append(mHal.info.exportedForeachFuncList[slot].first); + stringData = traceString->c_str(); } - ATRACE_NAME(String); - (void)String; + ATRACE_NAME(stringData); Context::PushState ps(rsc); @@ -193,8 +194,8 @@ void ScriptC::runForEach(Context *rsc, "Driver support for multi-input not present"); } - if (AString) { - delete AString; + if (traceString) { + delete traceString; } } |