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

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

Issue 204353005: Remove use of SkBitmap::Config (deprecated) from Source/web/tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add EXPECT_TRUE in two places ASSERT_TRUE does not work 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 | « no previous file | Source/web/tests/GraphicsContextTest.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 3277f07ded0243fa89d3ae067a5037ed5b95f139..4c20e27170054f3a228624b1db8cd6333eead550 100644
--- a/Source/web/tests/DragImageTest.cpp
+++ b/Source/web/tests/DragImageTest.cpp
@@ -64,9 +64,7 @@ public:
, m_size(size)
{
m_nativeImage = NativeImageSkia::create();
- m_nativeImage->bitmap().setConfig(SkBitmap::kARGB_8888_Config,
- size.width(), size.height(), 0);
- m_nativeImage->bitmap().allocPixels();
+ EXPECT_TRUE(m_nativeImage->bitmap().allocN32Pixels(size.width(), size.height()));
}
virtual IntSize size() const OVERRIDE
« no previous file with comments | « no previous file | Source/web/tests/GraphicsContextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698