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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/Uint8ClampedArray.h

Issue 2308353002: Replaced PassRefPtr copies with moves in Source/web and Source/wtf. (Closed)
Patch Set: Removed changes in HashMap.h which cause std::forward/std::move conflict Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/typed_arrays/Uint8ClampedArray.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/Uint8ClampedArray.h b/third_party/WebKit/Source/wtf/typed_arrays/Uint8ClampedArray.h
index aebe47ed30a9b6f0ce3d0978720194a57afcad5b..e074cfbb9fd8cc221fee0b802cba9fe00538fac9 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/Uint8ClampedArray.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/Uint8ClampedArray.h
@@ -65,7 +65,7 @@ PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(const unsigned char* arr
PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
{
- return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(buffer, byteOffset, length);
+ return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(std::move(buffer), byteOffset, length);
}
void Uint8ClampedArray::set(unsigned index, double value)
@@ -80,7 +80,7 @@ void Uint8ClampedArray::set(unsigned index, double value)
}
Uint8ClampedArray::Uint8ClampedArray(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-: Uint8Array(buffer, byteOffset, length)
+: Uint8Array(std::move(buffer), byteOffset, length)
{
}
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698