16e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa/*
26e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * Copyright 2016, The Android Open Source Project
36e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa *
46e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * Licensed under the Apache License, Version 2.0 (the "License");
56e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * you may not use this file except in compliance with the License.
66e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * You may obtain a copy of the License at
76e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa *
86e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa *      http://www.apache.org/licenses/LICENSE-2.0
96e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa *
106e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * Unless required by applicable law or agreed to in writing, software
116e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * distributed under the License is distributed on an "AS IS" BASIS,
126e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
136e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * See the License for the specific language governing permissions and
146e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa * limitations under the License.
156e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa */
166e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa
176e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa#include <gui/bufferqueue/1.0/B2HProducerListener.h>
186e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa
196e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasanamespace android {
206e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasanamespace hardware {
216e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasanamespace graphics {
226e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasanamespace bufferqueue {
236e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasanamespace V1_0 {
246e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasanamespace utils {
256e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa
266e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa// B2HProducerListener
276e1193af40c870c50013affec37c8429986b3c7bPawin VongmasaB2HProducerListener::B2HProducerListener(
286e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa        sp<BProducerListener> const& base):
296e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa    mBase(base) {
306e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}
316e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa
326e1193af40c870c50013affec37c8429986b3c7bPawin VongmasaReturn<void> B2HProducerListener::onBufferReleased() {
336e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa    mBase->onBufferReleased();
346e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa    return Void();
356e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}
366e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa
376e1193af40c870c50013affec37c8429986b3c7bPawin VongmasaReturn<bool> B2HProducerListener::needsReleaseNotify() {
386e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa    return mBase->needsReleaseNotify();
396e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}
406e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa
416e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}  // namespace utils
426e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}  // namespace V1_0
436e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}  // namespace bufferqueue
446e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}  // namespace graphics
456e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}  // namespace hardware
466e1193af40c870c50013affec37c8429986b3c7bPawin Vongmasa}  // namespace android
47