Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: include/private/SkTArray.h

Issue 1717393002: Add "sample locations" feature to GrProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_getmultisamp
Patch Set: comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/private/SkTArray.h
diff --git a/include/private/SkTArray.h b/include/private/SkTArray.h
index 5330e4930725cf5bbf5945e66cf847da68d09fba..06b9241234a8ded356cee4465722c006a6ac1c7d 100644
--- a/include/private/SkTArray.h
+++ b/include/private/SkTArray.h
@@ -185,7 +185,7 @@ public:
SkASSERT(n >= 0);
T* newTs = reinterpret_cast<T*>(this->push_back_raw(n));
for (int i = 0; i < n; ++i) {
- new (newTs[i]) T(t);
+ new (newTs + i) T(t);
}
return newTs;
}
« include/gpu/GrCaps.h ('K') | « include/gpu/GrProcessor.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698