int32_t y,
const std::string& shared_widget_info,
uint32_t serial) {
-
+ auto image_file = std::shared_ptr<ImageFile>(new ImageFile(fd, size));
if (done_) {
_W("Skip");
return;
listener_->OnPrepareEvent(raw_image_, serial);
} else if (type == TIZEN_REMOTE_SURFACE_BUFFER_TYPE_IMAGE_FILE) {
raw_image_ = std::shared_ptr<RawImage>(new RawImage(direction, x, y,
- shared_widget_info,
- std::shared_ptr<ImageFile>(new ImageFile(fd, size))));
+ shared_widget_info, std::move(image_file)));
listener_->OnPrepareEvent(raw_image_, serial);
} else {
_W("Unknown type(%u)", type);
int32_t y,
const std::string& shared_widget_info,
uint32_t serial) {
+ _W("target_type(%u), direction(%d), serial(%u)",
+ target_type, static_cast<int>(direction), serial);
if (target_type == TZSH_LAUNCHER_SERVICE_TARGET_TYPE_REMOTE_SURFACE) {
done_ = false;
listener_->OnResetEvent(serial);
}
void LauncherService::Impl::OnStopEvent(uint32_t serial) {
+ _W("serial(%u)", serial);
listener_->OnStopEvent(serial);
listener_->OnResetEvent(serial);
raw_image_.reset();
}
void LauncherService::Impl::OnErrorEvent(Error error, uint32_t serial) {
+ _W("error(%d), serial(%u)", static_cast<int>(error), serial);
if (error == Error::None)
return;
}
void LauncherService::Impl::OnCleanupEvent(uint32_t serial) {
+ _W("serial(%u)", serial);
listener_->OnCleanUpEvent(serial);
}