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

Unified Diff: src/animator/SkDrawShader.cpp

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! 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 | « include/xml/SkDOM.h ('k') | src/codec/SkJpegDecoderMgr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkDrawShader.cpp
diff --git a/src/animator/SkDrawShader.cpp b/src/animator/SkDrawShader.cpp
index f9f379bf73b559d1f9d27a400e8de36e357716e3..29e5251e2277c69509893898ed9bb47f3ae44bee 100644
--- a/src/animator/SkDrawShader.cpp
+++ b/src/animator/SkDrawShader.cpp
@@ -11,7 +11,6 @@
#include "SkDrawBitmap.h"
#include "SkDrawMatrix.h"
#include "SkDrawPaint.h"
-#include "SkTemplates.h"
#if SK_USE_CONDENSED_INFO == 0
@@ -72,11 +71,8 @@ SkShader* SkDrawBitmapShader::getShader() {
//
// oops, bitmapshader no longer takes filterBitmap, but deduces it at
// draw-time from the paint
- SkShader* shader = SkShader::CreateBitmapShader(image->fBitmap,
- (SkShader::TileMode) tileMode,
- (SkShader::TileMode) tileMode,
- getMatrix());
- SkAutoTDelete<SkShader> autoDel(shader);
- (void)autoDel.detach();
- return shader;
+ return SkShader::CreateBitmapShader(image->fBitmap,
+ (SkShader::TileMode) tileMode,
+ (SkShader::TileMode) tileMode,
+ getMatrix());
}
« no previous file with comments | « include/xml/SkDOM.h ('k') | src/codec/SkJpegDecoderMgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698