blob: 2838b2303136ca92cd84d003ba541338c66ce92c [file] [log] [blame]
Jesse Hall99c7dbb2013-03-14 14:29:29 -07001/*
2 * Copyright 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Jesse Hall99c7dbb2013-03-14 14:29:29 -070017#include "VirtualDisplaySurface.h"
Jesse Halle737c112013-05-07 11:58:47 -070018
19#include <cutils/log.h>
20#include <gui/IGraphicBufferProducer.h>
Jesse Hall99c7dbb2013-03-14 14:29:29 -070021
22// ---------------------------------------------------------------------------
23namespace android {
24// ---------------------------------------------------------------------------
25
Jesse Hallffe1f192013-03-22 15:13:48 -070026VirtualDisplaySurface::VirtualDisplaySurface(HWComposer& hwc, int32_t dispId,
Jesse Hall99c7dbb2013-03-14 14:29:29 -070027 const sp<IGraphicBufferProducer>& sink, const String8& name)
Jesse Halle737c112013-05-07 11:58:47 -070028: mSink(sink)
Jesse Hallffe1f192013-03-22 15:13:48 -070029{
Jesse Halle737c112013-05-07 11:58:47 -070030 LOG_ALWAYS_FATAL_IF(dispId >= 0);
Jesse Hallffe1f192013-03-22 15:13:48 -070031}
Jesse Hall99c7dbb2013-03-14 14:29:29 -070032
33VirtualDisplaySurface::~VirtualDisplaySurface() {
34}
35
36sp<IGraphicBufferProducer> VirtualDisplaySurface::getIGraphicBufferProducer() const {
Jesse Halle737c112013-05-07 11:58:47 -070037 return mSink;
Jesse Hall99c7dbb2013-03-14 14:29:29 -070038}
39
40status_t VirtualDisplaySurface::compositionComplete() {
41 return NO_ERROR;
42}
43
44status_t VirtualDisplaySurface::advanceFrame() {
Jesse Halle737c112013-05-07 11:58:47 -070045 return NO_ERROR;
Jesse Hall99c7dbb2013-03-14 14:29:29 -070046}
47
Jesse Hall851cfe82013-03-20 13:44:00 -070048void VirtualDisplaySurface::onFrameCommitted() {
Jesse Hall99c7dbb2013-03-14 14:29:29 -070049}
50
51void VirtualDisplaySurface::dump(String8& result) const {
52}
53
54// ---------------------------------------------------------------------------
55} // namespace android
56// ---------------------------------------------------------------------------