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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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 a727e0d3336aa7ce6e2bf73318e8f253dcfdafe0..3b0244401fb760f64ba46d3a7c82e6a2189dd6cc 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -461,8 +461,10 @@ TEST_P(WebViewTest, SetBaseBackgroundColorAndBlendWithExistingContent) {
// Set canvas background to red with alpha.
SkBitmap bitmap;
bitmap.allocN32Pixels(kWidth, kHeight);
- SkCanvas canvas(bitmap);
- canvas.clear(kAlphaRed);
+ SkCanvas bitmapCanvas(bitmap);
+ bitmapCanvas.clear(kAlphaRed);
+
+ PaintCanvasPassThrough canvas(&bitmapCanvas);
SkPictureBuilder pictureBuilder(FloatRect(0, 0, kWidth, kHeight));
@@ -476,7 +478,6 @@ TEST_P(WebViewTest, SetBaseBackgroundColorAndBlendWithExistingContent) {
PaintLayerPainter(*rootLayer)
.paintLayerContents(pictureBuilder.context(), paintingInfo,
PaintLayerPaintingCompositingAllPhases);
-
pictureBuilder.endRecording()->playback(&canvas);
// The result should be a blend of red and green.
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698