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

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

Issue 23643003: ImageBuffer-less SVG masking and clipping. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed Linux rebaselines. Created 7 years, 4 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/core/platform/graphics/GraphicsContextTest.cpp
diff --git a/Source/core/platform/graphics/GraphicsContextTest.cpp b/Source/core/platform/graphics/GraphicsContextTest.cpp
index 09e1436b495a4e539634602f55644ca53c2913c4..07209d38f0df8545c1278a4804bb4e6bc762b4a1 100644
--- a/Source/core/platform/graphics/GraphicsContextTest.cpp
+++ b/Source/core/platform/graphics/GraphicsContextTest.cpp
@@ -215,17 +215,6 @@ TEST(GraphicsContextTest, trackOpaqueClipTest)
EXPECT_EQ_RECT(IntRect(), context.opaqueRegion().asRect());
EXPECT_PIXELS_MATCH(bitmap, context.opaqueRegion().asRect());
context.restore();
-
- OwnPtr<ImageBuffer> alphaImage = ImageBuffer::create(IntSize(100, 100));
- alphaImage->context()->fillRect(IntRect(0, 0, 100, 100), alpha);
-
- // Clipping with a non-opaque Image (there is no way to mark an ImageBuffer as opaque today).
- context.save();
- context.clipToImageBuffer(alphaImage.get(), FloatRect(30, 30, 10, 10));
- context.fillRect(FloatRect(10, 10, 90, 90), opaque, CompositeSourceOver);
- context.restore();
- EXPECT_EQ_RECT(IntRect(), context.opaqueRegion().asRect());
- EXPECT_PIXELS_MATCH(bitmap, context.opaqueRegion().asRect());
}
TEST(GraphicsContextTest, trackImageMask)

Powered by Google App Engine
This is Rietveld 408576698