Add the setPreviewWindow camera HAL API to the camera stub.
Change-Id: Ic669f9d5f5ae8f1fe5bd055f55aa4a18fa6d84cd
This commit is contained in:
@@ -101,9 +101,9 @@ CameraHardwareStub::~CameraHardwareStub()
|
||||
mFakeCamera = 0; // paranoia
|
||||
}
|
||||
|
||||
sp<IMemoryHeap> CameraHardwareStub::getPreviewHeap() const
|
||||
status_t CameraHardwareStub::setPreviewWindow(const sp<ANativeWindow>& buf)
|
||||
{
|
||||
return mPreviewHeap;
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
sp<IMemoryHeap> CameraHardwareStub::getRawHeap() const
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace android {
|
||||
|
||||
class CameraHardwareStub : public CameraHardwareInterface {
|
||||
public:
|
||||
virtual sp<IMemoryHeap> getPreviewHeap() const;
|
||||
virtual status_t setPreviewWindow(const sp<ANativeWindow>& buf);
|
||||
virtual sp<IMemoryHeap> getRawHeap() const;
|
||||
|
||||
virtual void setCallbacks(notify_callback notify_cb,
|
||||
|
||||
Reference in New Issue
Block a user