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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.cpp

Issue 2716203002: blink: Fix cc/paint skia type mismatches (Closed)
Patch Set: Fix canvas Created 3 years, 10 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: third_party/WebKit/Source/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 87d0d515b38f97ec0d3333f7def605d26eac153b..4bcb8c64a50114a68bafbd7d272210df4ff084e8 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -460,10 +460,8 @@ TEST_P(WebViewTest, SetBaseBackgroundColorAndBlendWithExistingContent) {
// Set canvas background to red with alpha.
SkBitmap bitmap;
bitmap.allocN32Pixels(kWidth, kHeight);
- SkCanvas bitmapCanvas(bitmap);
- bitmapCanvas.clear(kAlphaRed);
-
- PaintCanvasPassThrough canvas(&bitmapCanvas);
+ SkCanvas canvas(bitmap);
+ canvas.clear(kAlphaRed);
PaintRecordBuilder builder(FloatRect(0, 0, kWidth, kHeight));

Powered by Google App Engine
This is Rietveld 408576698