remote_surface: removed unnecessary rw attributes when using tbm_surface_map 60/154560/1
authorGwanglim Lee <gl77.lee@samsung.com>
Tue, 10 Oct 2017 12:20:35 +0000 (21:20 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 10 Oct 2017 12:20:35 +0000 (21:20 +0900)
Change-Id: I3852eaf88d5f4f0e3ab701cb360d4eb8f58735c2

src/bin/e_comp_wl_rsm.c

index 78729003e603ca919b42d6596f5651adea0eabbc..4964ef1cf436ddc80d67433f68b2e77067980e22 100644 (file)
@@ -1029,7 +1029,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h)
         src_format = _remote_source_image_data_pixman_format_get_from_tbm_surface(tbm_surface_get_format(td->tbm_surface));
         dst_format = src_format;
 
-        tbm_surface_map(td->tbm_surface, TBM_SURF_OPTION_READ|TBM_SURF_OPTION_WRITE, &info);
+        tbm_surface_map(td->tbm_surface, TBM_SURF_OPTION_READ, &info);
         src_ptr = info.planes[0].ptr;
 
         src_img = pixman_image_create_bits(src_format, w, h, (uint32_t*)src_ptr, info.planes[0].stride);
@@ -1064,7 +1064,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h)
    transform_surface = tbm_surface_create(tw, th, tbm_surface_get_format(td->tbm_surface));
    EINA_SAFETY_ON_NULL_GOTO(transform_surface, error_case);
 
-   tbm_surface_map(transform_surface, TBM_SURF_OPTION_READ|TBM_SURF_OPTION_WRITE, &info);
+   tbm_surface_map(transform_surface, TBM_SURF_OPTION_WRITE, &info);
    dst_ptr = info.planes[0].ptr;
 
    dst_img = pixman_image_create_bits(dst_format, tw, th, (uint32_t*)dst_ptr, info.planes[0].stride);