- bundle_get_byte(envelope, "__AUL_RSP_SURFACE_ID__", (void **)&res_id,
- &sz);
+ bundle_get_byte(envelope, "__AUL_RSP_SURFACE_ID__", (void **)&res_id, &sz);
+ bundle_get_byte(envelope, "__AUL_RSP_SURFACE_CREATOR_PID__", (void **)&pid, &sz);
+ if (id) {
+ surface = g_hash_table_lookup(__viewer_tbl, id);
+ if (!surface) {
+ _E("unknown surface");
+ return 0;
+ }
+ }
+
+ if (pid != NULL)
+ surface->pid = (int)*pid;
+
+ surface->resource_id = *res_id;
+ surface->surface = tizen_remote_surface_manager_create_surface(__rsm,
+ (uint32_t)*res_id, __tbm);
+
+ _D("__tbm_handler %d, %d, %s", *pid, *res_id, id);