From: Boram Park Date: Tue, 10 Oct 2017 09:05:56 +0000 (+0900) Subject: e_comp_wl_rsm: fix wrong dump images for transformed buffer X-Git-Tag: submit/tizen_3.0/20171019.130042^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl_rsm: fix wrong dump images for transformed buffer Change-Id: I3795f0456f3c879d04683f410c17538847320012 --- diff --git a/src/bin/e_comp_wl_rsm.c b/src/bin/e_comp_wl_rsm.c index 03f00ff560..7c58b1d444 100644 --- a/src/bin/e_comp_wl_rsm.c +++ b/src/bin/e_comp_wl_rsm.c @@ -1049,7 +1049,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h) if (td->transform == WL_OUTPUT_TRANSFORM_90) { - c = 0, s = -1, tx = -w; + c = 0, s = -1, tx = -h; tw = h, th = w; } else if (td->transform == WL_OUTPUT_TRANSFORM_180) @@ -1059,7 +1059,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h) } else if (td->transform == WL_OUTPUT_TRANSFORM_270) { - c = 0, s = 1, ty = -h; + c = 0, s = 1, ty = -w; tw = h, th = w; } @@ -1079,7 +1079,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h) pixman_transform_from_pixman_f_transform(&t, &ft); pixman_image_set_transform(src_img, &t); - pixman_image_composite(PIXMAN_OP_SRC, src_img, NULL, dst_img, 0, 0, 0, 0, 0, 0, w, h); + pixman_image_composite(PIXMAN_OP_SRC, src_img, NULL, dst_img, 0, 0, 0, 0, 0, 0, tw, th); error_case: @@ -1379,13 +1379,7 @@ _remote_source_save_start(E_Comp_Wl_Remote_Source *source) ecore_thread_cancel(source->th); } - if (ec->comp_data) - { - E_Comp_Wl_Buffer_Viewport *vp = &ec->comp_data->scaler.buffer_viewport; - td->transform = vp->buffer.transform; - } - else - td->transform = 0; + td->transform = e_comp_wl_output_buffer_transform_get(ec); e_comp_wl_buffer_reference(&source->buffer_ref, buffer); switch (buffer->type)