зеркало из https://github.com/mozilla/moz-skia.git
Fix asan build. Duh, don't return a stack address...
BUG= R=robertphillips@google.com Review URL: https://codereview.chromium.org/25026004 git-svn-id: http://skia.googlecode.com/svn/trunk@11497 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
bdaed95e3f
Коммит
9cb5177619
|
@ -514,15 +514,16 @@ private:
|
|||
|
||||
template <typename T>
|
||||
class DivModBench : public SkBenchmark {
|
||||
const char* fName;
|
||||
SkString fName;
|
||||
public:
|
||||
explicit DivModBench(const char* name) : fName(name) {
|
||||
explicit DivModBench(const char* name) {
|
||||
fName.printf("divmod_%s", name);
|
||||
fIsRendering = false;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual const char* onGetName() {
|
||||
return SkStringPrintf("divmod_%s", fName).c_str();
|
||||
return fName.c_str();
|
||||
}
|
||||
|
||||
virtual void onDraw(SkCanvas*) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче