Bug 911391 - Add GetFBSurface() to GonkDisplay because HwcComposer2D will need it in Jellybean. r=mwu

This commit is contained in:
Diego Wilson 2013-09-11 15:10:23 +02:00
parent 1564532826
commit e6ec1a706e
5 changed files with 18 additions and 0 deletions

View File

@ -35,6 +35,8 @@ public:
virtual void* GetHWCDevice() = 0;
virtual void* GetFBSurface() = 0;
virtual bool SwapBuffers(EGLDisplay dpy, EGLSurface sur) = 0;
virtual ANativeWindowBuffer* DequeueBuffer() = 0;

View File

@ -160,6 +160,12 @@ GonkDisplayICS::GetHWCDevice()
return mHwc;
}
void*
GonkDisplayICS::GetFBSurface()
{
return mFBSurface.get();
}
bool
GonkDisplayICS::SwapBuffers(EGLDisplay dpy, EGLSurface sur)
{

View File

@ -38,6 +38,8 @@ public:
virtual void* GetHWCDevice();
virtual void* GetFBSurface();
virtual bool SwapBuffers(EGLDisplay dpy, EGLSurface sur);
virtual ANativeWindowBuffer* DequeueBuffer();

View File

@ -171,6 +171,12 @@ GonkDisplayJB::GetHWCDevice()
return mHwc;
}
void*
GonkDisplayJB::GetFBSurface()
{
return mFBSurface.get();
}
bool
GonkDisplayJB::SwapBuffers(EGLDisplay dpy, EGLSurface sur)
{

View File

@ -37,6 +37,8 @@ public:
virtual void* GetHWCDevice();
virtual void* GetFBSurface();
virtual bool SwapBuffers(EGLDisplay dpy, EGLSurface sur);
virtual ANativeWindowBuffer* DequeueBuffer();