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

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 for shape bug 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
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/platform/graphics/ImageBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContextTest.cpp
diff --git a/Source/platform/graphics/GraphicsContextTest.cpp b/Source/platform/graphics/GraphicsContextTest.cpp
index ec6ca6d1cc97d3b8ad3d233fc47bf7e672df05a3..938df42d6fa9e95b7335ceea9ebe19808ebb5ada 100644
--- a/Source/platform/graphics/GraphicsContextTest.cpp
+++ b/Source/platform/graphics/GraphicsContextTest.cpp
@@ -112,7 +112,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));
@@ -145,7 +145,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));
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/platform/graphics/ImageBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698