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

Unified Diff: Source/web/tests/WebViewTest.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 | « Source/web/tests/WebFrameTest.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/WebViewTest.cpp
diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
index 1789b3c0747325ebf0b8149a42de545b9bf6b938..5dc9b21c479e39d1d2a5825c8092630a740fcc3f 100644
--- a/Source/web/tests/WebViewTest.cpp
+++ b/Source/web/tests/WebViewTest.cpp
@@ -285,10 +285,8 @@ TEST_F(WebViewTest, SetBaseBackgroundColorAndBlendWithExistingContent)
// Set canvas background to red with alpha.
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, kWidth, kHeight);
- bitmap.allocPixels();
- SkBitmapDevice device(bitmap);
- SkCanvas canvas(&device);
+ ASSERT_TRUE(bitmap.allocN32Pixels(kWidth, kHeight));
+ SkCanvas canvas(bitmap);
canvas.clear(kAlphaRed);
webView->paint(&canvas, WebRect(0, 0, kWidth, kHeight));
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698