From patchwork Mon Mar 29 06:11:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 11757 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 18F46C32EF for ; Mon, 29 Mar 2021 06:11:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 46A80602D7; Mon, 29 Mar 2021 08:11:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="XERCnNfF"; dkim-atps=neutral Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8E10A602D2 for ; Mon, 29 Mar 2021 08:11:32 +0200 (CEST) Received: by mail-pg1-x52f.google.com with SMTP id h25so8765816pgm.3 for ; Sun, 28 Mar 2021 23:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6JQ6vyQn/crxBiv1UcdFgPUzTCTjxNV27NSBOpDYbDg=; b=XERCnNfFPM+kNM/7in12K2TIQC62VaMqPv/6SIXZjd3xdx+Gjp6FsHkc6QV8whmHA+ EtOhbtjxvB8hjfIxmwGHBi3VoCJ8W0COokH+NPWnH9QJ3MkBtZ+Ib6IDdMEhlDGiCddC Gamkbb+KDvueBRVRVJm6DUiRrZUGNAb3JjzNM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6JQ6vyQn/crxBiv1UcdFgPUzTCTjxNV27NSBOpDYbDg=; b=J8BmD3yiwkJM+ivKjI7ev0tE+unOnLpOV11T7b4UJB3ycfoJOuyHA4/81A6bG2NnHK +Y06wyYZSJi7mobuW8RnGeZfFr5Dm+MZnzYmvSp4mSv3Ya9Wjp9HG4wQlw2H5h/gY8Yq K1OoIuGEmIEUR5xfLT5O33OU8TxeuNqtNn4hV00POgS6llujwD87qTle1IEAeb9L+vNs ikFAN3Wut8MxkPHG6iLganvQHCJcIdIOmF7zNPD/4fhnB+mwu8+av4YzffowgJr25nBq oWiT8nOikFMGMFF09ESDA2w6+OY9dbGUuL41NLCk1UbvQN6434Re2Jupeypi3h68BxEi /QNQ== X-Gm-Message-State: AOAM530soybEkai9ZddA7AARSrqUxsndbaqkyBKwg00pyYxfa8lEkpOe KVPN2PYUZyCKxm6mGfXQAXRv8FSCp7czlA== X-Google-Smtp-Source: ABdhPJy3pp0K6Vwujed2hqKElaW7Lebjbby4IAAbCojskcfa6OZUpCLb1Hn58mRZ2L0NVtodIWyQEQ== X-Received: by 2002:a63:2c8f:: with SMTP id s137mr22234552pgs.51.1616998285274; Sun, 28 Mar 2021 23:11:25 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:2:1db7:ae60:9288:b906]) by smtp.gmail.com with ESMTPSA id f2sm16445975pfq.129.2021.03.28.23.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Mar 2021 23:11:24 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Mon, 29 Mar 2021 15:11:17 +0900 Message-Id: <20210329061119.135513-1-hiroh@chromium.org> X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/2] Fix Camera3RequestDescriptor leakage X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This enables CameraDevice to retain the leakage of Camera3RequestDescriptor. Change in v3: - Add CameraDevice::stop(). - Fix the style error in patch 1. Hirokazu Honda (2): android: CameraDevice: Fix Camera3RequestDescriptor leakage android: CameraDevice: Add stop() src/android/camera_device.cpp | 84 +++++++++++++++++++---------------- src/android/camera_device.h | 10 ++++- src/android/camera_worker.cpp | 4 +- src/android/camera_worker.h | 2 +- 4 files changed, 56 insertions(+), 44 deletions(-) --- 2.31.0.291.g576ba9dcdaf-goog