diff options
author | rider <rider@lindenlab.com> | 2015-10-01 12:36:52 -0700 |
---|---|---|
committer | rider <rider@lindenlab.com> | 2015-10-01 12:36:52 -0700 |
commit | ca81b19e80d0e0301b08bad9bd32ada937dea10d (patch) | |
tree | 86e33382a19aa9b9f1555b8987a1a6b511b8cbe5 /indra/newview/lltexturestats.cpp | |
parent | 17ff449ae6b2759f212daa4fd3de0a7ea2664866 (diff) | |
parent | 4334fd27e2215c1bfad3aa7ab7130b8c6b289de5 (diff) |
Merge for Xcode 7
Diffstat (limited to 'indra/newview/lltexturestats.cpp')
-rwxr-xr-x | indra/newview/lltexturestats.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/indra/newview/lltexturestats.cpp b/indra/newview/lltexturestats.cpp index ca42d710f8..8ded148e17 100755 --- a/indra/newview/lltexturestats.cpp +++ b/indra/newview/lltexturestats.cpp @@ -30,8 +30,8 @@ #include "llagent.h" #include "lltexturefetch.h" #include "lltexturestats.h" -#include "lltexturestatsuploader.h" #include "llviewerregion.h" +#include "llcorehttputil.h" void send_texture_stats_to_sim(const LLSD &texture_stats) { @@ -49,6 +49,16 @@ void send_texture_stats_to_sim(const LLSD &texture_stats) std::string texture_cap_url = gAgent.getRegion()->getCapability("TextureStats"); LL_INFOS() << "uploading texture stats data to simulator" << LL_ENDL; - LLTextureStatsUploader::uploadStatsToSimulator(texture_cap_url, texture_stats); + + if (texture_cap_url != "") + { + LLCoreHttpUtil::HttpCoroutineAdapter::messageHttpPost(texture_cap_url, texture_stats, + "Texture statistics posted to sim.", "Error posting texture statistics to sim"); + } + else + { + LL_INFOS() << "Not sending texture stats: " << texture_stats + << " as there is no cap url." << LL_ENDL; + } } |