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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp

Issue 1670463002: [Oilpan] Unify memory usage reporters of Oilpan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
index 32f4aa92910d0cbfee0cbbb372ef28af52f425e3..df5f4c1146bb2656faf6272532be0ae2b073843b 100644
--- a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
@@ -22,12 +22,6 @@ ImagePattern::ImagePattern(PassRefPtr<Image> image, RepeatMode repeatMode)
: Pattern(repeatMode)
, m_tileImage(image->imageForCurrentFrame())
{
- if (m_tileImage) {
- // TODO(fmalita): mechanism to extract the actual SkImageInfo from an SkImage?
- const SkImageInfo info =
- SkImageInfo::MakeN32Premul(m_tileImage->width(), m_tileImage->height());
- adjustExternalMemoryAllocated(info.getSafeSize(info.minRowBytes()));
haraken 2016/02/04 12:00:29 You cannot remove this because this explains Skia'
peria 2016/02/08 08:41:10 Done.
- }
}
PassRefPtr<SkShader> ImagePattern::createShader()

Powered by Google App Engine
This is Rietveld 408576698