OSDN Git Service

Merge "new String8, String16 ctors to initialize empty static strings with static...
[android-x86/frameworks-native.git] / services / surfaceflinger / DisplayHardware / VirtualDisplaySurface.cpp
1 /*
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
17 #include "VirtualDisplaySurface.h"
18
19 #include <cutils/log.h>
20 #include <gui/IGraphicBufferProducer.h>
21
22 // ---------------------------------------------------------------------------
23 namespace android {
24 // ---------------------------------------------------------------------------
25
26 VirtualDisplaySurface::VirtualDisplaySurface(HWComposer& hwc, int32_t dispId,
27         const sp<IGraphicBufferProducer>& sink, const String8& name)
28 :   mSink(sink)
29 {
30     LOG_ALWAYS_FATAL_IF(dispId >= 0);
31 }
32
33 VirtualDisplaySurface::~VirtualDisplaySurface() {
34 }
35
36 sp<IGraphicBufferProducer> VirtualDisplaySurface::getIGraphicBufferProducer() const {
37     return mSink;
38 }
39
40 status_t VirtualDisplaySurface::compositionComplete() {
41     return NO_ERROR;
42 }
43
44 status_t VirtualDisplaySurface::advanceFrame() {
45     return NO_ERROR;
46 }
47
48 void VirtualDisplaySurface::onFrameCommitted() {
49 }
50
51 void VirtualDisplaySurface::dump(String8& result) const {
52 }
53
54 // ---------------------------------------------------------------------------
55 } // namespace android
56 // ---------------------------------------------------------------------------