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

Unified Diff: Source/web/tests/DragImageTest.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/platform/image-decoders/ImageFrame.cpp ('k') | Source/web/tests/ImageLayerChromiumTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/DragImageTest.cpp
diff --git a/Source/web/tests/DragImageTest.cpp b/Source/web/tests/DragImageTest.cpp
index 4c20e27170054f3a228624b1db8cd6333eead550..46337005e8b6995c8c45379a87c46b216cf9e73b 100644
--- a/Source/web/tests/DragImageTest.cpp
+++ b/Source/web/tests/DragImageTest.cpp
@@ -63,8 +63,9 @@ public:
: Image(0)
, m_size(size)
{
- m_nativeImage = NativeImageSkia::create();
- EXPECT_TRUE(m_nativeImage->bitmap().allocN32Pixels(size.width(), size.height()));
+ SkBitmap bitmap;
+ EXPECT_TRUE(bitmap.allocN32Pixels(size.width(), size.height()));
+ m_nativeImage = NativeImageSkia::create(bitmap);
}
virtual IntSize size() const OVERRIDE
« no previous file with comments | « Source/platform/image-decoders/ImageFrame.cpp ('k') | Source/web/tests/ImageLayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698