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

Unified Diff: Source/web/tests/ImageLayerChromiumTest.cpp

Issue 170463002: Replace NativeImageSkia usage with SkBitmap in ImageFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 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 | « Source/web/tests/DragImageTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/ImageLayerChromiumTest.cpp
diff --git a/Source/web/tests/ImageLayerChromiumTest.cpp b/Source/web/tests/ImageLayerChromiumTest.cpp
index 66f0864bc0e4f36c6ddc096c85f790d68671c247..26fdc1c1c593f4166f16f85eb407965fd0aae109 100644
--- a/Source/web/tests/ImageLayerChromiumTest.cpp
+++ b/Source/web/tests/ImageLayerChromiumTest.cpp
@@ -54,8 +54,9 @@ public:
: Image(0)
, m_size(size)
{
- m_nativeImage = NativeImageSkia::create();
- EXPECT_TRUE(m_nativeImage->bitmap().allocN32Pixels(size.width(), size.height(), isOpaque));
+ SkBitmap bitmap;
+ EXPECT_TRUE(bitmap.allocN32Pixels(size.width(), size.height(), isOpaque));
+ m_nativeImage = NativeImageSkia::create(bitmap);
}
virtual bool isBitmapImage() const OVERRIDE
« no previous file with comments | « Source/web/tests/DragImageTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698