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

Unified Diff: Source/web/tests/GraphicsContextTest.cpp

Issue 169283008: Maintain SkPaint in GraphicsContextState. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A couple more optimizations. Created 6 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
« no previous file with comments | « Source/platform/graphics/StrokeData.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/GraphicsContextTest.cpp
diff --git a/Source/web/tests/GraphicsContextTest.cpp b/Source/web/tests/GraphicsContextTest.cpp
index 1fb9130c51ab6ccddd1c55415fc0621c721646eb..07f74fd1706fe4b18e8a5f91ae1a41f1116a9423 100644
--- a/Source/web/tests/GraphicsContextTest.cpp
+++ b/Source/web/tests/GraphicsContextTest.cpp
@@ -573,7 +573,7 @@ TEST(GraphicsContextTest, trackOpaqueImageTest)
EXPECT_PIXELS_MATCH(bitmap, context.opaqueRegion().asRect());
context.save();
- context.setAlpha(0.5);
+ context.setAlphaAsFloat(0.5);
context.drawImage(opaqueImage.get(), IntPoint(25, 15), CompositeSourceIn);
context.restore();
EXPECT_EQ_RECT(IntRect(10, 25, 90, 75), context.opaqueRegion().asRect());
@@ -588,7 +588,7 @@ TEST(GraphicsContextTest, trackOpaqueImageTest)
EXPECT_PIXELS_MATCH(bitmap, context.opaqueRegion().asRect());
context.save();
- context.setAlpha(0.5);
+ context.setAlphaAsFloat(0.5);
context.drawImage(opaqueImage.get(), IntPoint(15, 25), CompositeSourceIn);
context.restore();
EXPECT_EQ_RECT(IntRect(25, 10, 75, 90), context.opaqueRegion().asRect());
« no previous file with comments | « Source/platform/graphics/StrokeData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698