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

Unified Diff: src/image/SkImage_Gpu.cpp

Issue 13535004: Replacing 'new' with 'SkNEW_ARGS' in SkImage_Gpu (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkImage_Gpu.cpp
===================================================================
--- src/image/SkImage_Gpu.cpp (revision 8437)
+++ src/image/SkImage_Gpu.cpp (working copy)
@@ -44,7 +44,7 @@
SkASSERT(NULL != fTexture);
fTexture->ref();
fBitmap.setConfig(SkBitmap::kARGB_8888_Config, fTexture->width(), fTexture->height());
- fBitmap.setPixelRef(new SkGrPixelRef(fTexture))->unref();
+ fBitmap.setPixelRef(SkNEW_ARGS(SkGrPixelRef, (fTexture)))->unref();
}
SkImage_Gpu::~SkImage_Gpu() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698