• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #include <message_option.h>
16 #include <message_parcel.h>
17 #include "producer_surface_delegator.h"
18 #include "buffer_log.h"
19 #include "sync_fence.h"
20 
21 namespace OHOS {
DequeueBuffer(int32_t slot,sptr<SurfaceBuffer> buffer)22 GSError ProducerSurfaceDelegator::DequeueBuffer(int32_t slot, sptr<SurfaceBuffer> buffer)
23 {
24     return GSERROR_OK;
25 }
26 
QueueBuffer(int32_t slot,int32_t acquireFence)27 GSError ProducerSurfaceDelegator::QueueBuffer(int32_t slot, int32_t acquireFence)
28 {
29     return GSERROR_OK;
30 }
31 
ReleaseBuffer(const sptr<SurfaceBuffer> & buffer,const sptr<SyncFence> & fence)32 GSError ProducerSurfaceDelegator::ReleaseBuffer(const sptr<SurfaceBuffer> &buffer, const sptr<SyncFence> &fence)
33 {
34     return GSERROR_OK;
35 }
36 
ClearBufferSlot(int32_t slot)37 GSError ProducerSurfaceDelegator::ClearBufferSlot(int32_t slot)
38 {
39     return GSERROR_OK;
40 }
41 
CancelBuffer(int32_t slot,int32_t fenceFd)42 GSError ProducerSurfaceDelegator::CancelBuffer(int32_t slot, int32_t fenceFd)
43 {
44     return GSERROR_OK;
45 }
46 
DetachBuffer(int32_t slot)47 GSError ProducerSurfaceDelegator::DetachBuffer(int32_t slot)
48 {
49     return GSERROR_OK;
50 }
51 
OnDequeueBuffer(MessageParcel & data,MessageParcel & reply)52 int ProducerSurfaceDelegator::OnDequeueBuffer(MessageParcel &data, MessageParcel &reply)
53 {
54     return ERR_NONE;
55 }
56 
OnRemoteRequest(uint32_t code,MessageParcel & data,MessageParcel & reply,MessageOption & option)57 int ProducerSurfaceDelegator::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply,
58     MessageOption &option)
59 {
60     return ERR_NONE;
61 }
62 } // namespace OHOS
63