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

Unified Diff: tests/CTest.cpp

Issue 1242403005: C API: add sk_xfermode.h, impl, test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: consistant behaviour Created 5 years, 5 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 | « src/c/sk_paint.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/CTest.cpp
diff --git a/tests/CTest.cpp b/tests/CTest.cpp
index 413f629ee3f2f4bfc4f1f24a2b01e4a5817719c3..acab4bb11bfed6064bb1dbfb1dea7d5bab0e7c36 100644
--- a/tests/CTest.cpp
+++ b/tests/CTest.cpp
@@ -32,6 +32,11 @@ static void test_c(skiatest::Reporter* reporter) {
sk_canvas_draw_paint(canvas, paint);
REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]);
+ sk_paint_set_xfermode_mode(paint, SRC_SK_XFERMODE_MODE);
+ sk_paint_set_color(paint, sk_color_set_argb(0x80, 0x80, 0x80, 0x80));
+ sk_canvas_draw_paint(canvas, paint);
+ REPORTER_ASSERT(reporter, 0x80404040 == pixel[0]);
+
sk_paint_delete(paint);
sk_surface_unref(surface);
}
« no previous file with comments | « src/c/sk_paint.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698