Page MenuHomePhabricator

ector_software_rasterizer: Use a premultiplied color.
AbandonedPublic

Authored by jsuya on Jun 28 2019, 3:33 AM.

Details

Reviewers
Hermet
kimcinoo
Summary

R, G, and B must not be higher than alpha.

Test Plan
//test code
Ecore_Evas *ee = ecore_evas_new(NULL, 0, 0, 600, 600, NULL);
ecore_evas_show(ee);

Evas *evas = ecore_evas_get(ee);
Evas_Object *vg,*bg;

bg = evas_object_rectangle_add(evas);
evas_object_color_set(bg, 0, 0, 255, 255);
evas_object_focus_set(bg, 1);
evas_object_show(bg);
int w, h;
ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
evas_object_resize(bg, w, h);   

vg = evas_object_vg_add(evas);
evas_object_focus_set(vg, 1);
evas_object_show(vg);
evas_object_resize(vg, w, h);

Efl_VG *shape, *container;
container = evas_vg_container_add(vg);
shape = evas_vg_shape_add(container);

evas_vg_shape_append_rect(shape, 0, 0, 200 , 200, 10, 10);
evas_vg_shape_stroke_color_set(shape, 255, 255, 255, 10);
evas_vg_shape_stroke_width_set(shape, 20);
evas_vg_node_origin_set(shape, 200, 200);

evas_object_vg_root_node_set(vg, container);
ecore_main_loop_begin();
ecore_evas_shutdown();

Diff Detail

Repository
rEFL core/efl
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 11998
Build 8839: arc lint + arc unit
jsuya created this revision.Jun 28 2019, 3:33 AM
jsuya requested review of this revision.Jun 28 2019, 3:33 AM
Hermet requested changes to this revision.Jul 1 2019, 5:24 AM

We'd rather put logs in api so that user know which api they misused.

This revision now requires changes to proceed.Jul 1 2019, 5:24 AM
jsuya abandoned this revision.Jul 7 2019, 6:53 PM