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

Unified Diff: Source/platform/graphics/ImageFrameGenerator.cpp

Issue 307813004: deprecate asImageInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add & Created 6 years, 7 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: Source/platform/graphics/ImageFrameGenerator.cpp
diff --git a/Source/platform/graphics/ImageFrameGenerator.cpp b/Source/platform/graphics/ImageFrameGenerator.cpp
index 228d21863ee9313eb80bd978f9b799174a642cd4..a51db79f686bba988dadc80ef9dfc10e3900446d 100644
--- a/Source/platform/graphics/ImageFrameGenerator.cpp
+++ b/Source/platform/graphics/ImageFrameGenerator.cpp
@@ -52,14 +52,14 @@ public:
virtual bool allocPixelRef(SkBitmap* dst, SkColorTable* ctable) OVERRIDE
{
- SkImageInfo info;
- if (!dst->asImageInfo(&info))
+ const SkImageInfo& info = dst->info();
+ if (kUnknown_SkColorType == info.colorType())
return false;
if (info != m_info || m_rowBytes != dst->rowBytes())
return false;
- if (!dst->installPixels(m_info, m_pixels, m_rowBytes, 0, 0))
+ if (!dst->installPixels(m_info, m_pixels, m_rowBytes))
return false;
dst->lockPixels();
return true;
« no previous file with comments | « Source/platform/graphics/DiscardablePixelRef.cpp ('k') | Source/platform/graphics/test/MockDiscardablePixelRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698