-
Notifications
You must be signed in to change notification settings - Fork 659
Closed
Description
i build on windows7 use NDKR10D and AOSP is android 4.4
the code like this :
android::sp<android::SurfaceComposerClient> sc = new android::SurfaceComposerClient();
if ((err = sc->initCheck()) != android::NO_ERROR) {
MCERROR("Unable to initialize SurfaceComposerClient");
return err;
}
all ways return error , why ? i checked the android4.4 source , and class SurfaceComposerClient:
SurfaceComposerClient::SurfaceComposerClient()
: mStatus(NO_INIT), mComposer(Composer::getInstance())
{
}
status_t SurfaceComposerClient::initCheck() const {
return mStatus;
}
the code means , initCheck is allways return NO_INIT .
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels