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

Unified Diff: Source/platform/graphics/GraphicsContextTest.cpp

Issue 1170523002: Removing GraphicsContext from ImageBuffer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix unit test crashes Created 5 years, 6 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: Source/platform/graphics/GraphicsContextTest.cpp
diff --git a/Source/platform/graphics/GraphicsContextTest.cpp b/Source/platform/graphics/GraphicsContextTest.cpp
index b161d098239defe09ca05af842ef259f517698a3..fa2d44e9730769b32661ff8610b9683b2cb9a5b3 100644
--- a/Source/platform/graphics/GraphicsContextTest.cpp
+++ b/Source/platform/graphics/GraphicsContextTest.cpp
@@ -115,7 +115,7 @@ TEST(GraphicsContextTest, trackImageMask)
OwnPtr<ImageBuffer> alphaImage = ImageBuffer::create(IntSize(100, 100));
EXPECT_FALSE(!alphaImage);
- alphaImage->context()->fillRect(IntRect(0, 0, 100, 100), alpha);
+ alphaImage->canvas()->drawColor(alpha.rgb());
context->drawImageBuffer(alphaImage.get(), FloatRect(10, 10, 10, 10));
@@ -148,7 +148,7 @@ TEST(GraphicsContextTest, trackImageMaskWithOpaqueRect)
OwnPtr<ImageBuffer> alphaImage = ImageBuffer::create(IntSize(100, 100));
EXPECT_FALSE(!alphaImage);
- alphaImage->context()->fillRect(IntRect(0, 0, 100, 100), alpha);
+ alphaImage->canvas()->drawColor(alpha.rgb());
context->drawImageBuffer(alphaImage.get(), FloatRect(10, 10, 10, 10));

Powered by Google App Engine
This is Rietveld 408576698