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

Unified Diff: src/core/SkRWBuffer.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 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 | « src/core/SkPixelRef.cpp ('k') | src/core/SkRecordDraw.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRWBuffer.cpp
diff --git a/src/core/SkRWBuffer.cpp b/src/core/SkRWBuffer.cpp
index 6669471b5e8aa785273c0e4329cf430abcd74c6b..7c775135ebaf953c01612022581c10cabfea0474 100644
--- a/src/core/SkRWBuffer.cpp
+++ b/src/core/SkRWBuffer.cpp
@@ -229,9 +229,7 @@ void SkRWBuffer::validate() const {
}
#endif
-SkROBuffer* SkRWBuffer::newRBufferSnapshot() const {
- return SkNEW_ARGS(SkROBuffer, (fHead, fTotalUsed));
-}
+SkROBuffer* SkRWBuffer::newRBufferSnapshot() const { return new SkROBuffer(fHead, fTotalUsed); }
///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -305,9 +303,7 @@ public:
return fBuffer->size() == fGlobalOffset;
}
- SkStreamAsset* duplicate() const override {
- return SkNEW_ARGS(SkROBufferStreamAsset, (fBuffer));
- }
+ SkStreamAsset* duplicate() const override { return new SkROBufferStreamAsset(fBuffer); }
size_t getPosition() const override {
return fGlobalOffset;
@@ -349,5 +345,5 @@ private:
SkStreamAsset* SkRWBuffer::newStreamSnapshot() const {
SkAutoTUnref<SkROBuffer> buffer(this->newRBufferSnapshot());
- return SkNEW_ARGS(SkROBufferStreamAsset, (buffer));
+ return new SkROBufferStreamAsset(buffer);
}
« no previous file with comments | « src/core/SkPixelRef.cpp ('k') | src/core/SkRecordDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698