am 71aa2fca: Merge "EmuGL: Deliver every frame to a callback"

* commit '71aa2fcac1cd1e5d59c210b5dd332ca4aefba530':
  EmuGL: Deliver every frame to a callback
This commit is contained in:
Jesse Hall
2012-03-26 18:27:10 -07:00
committed by Android Git Automerger
5 changed files with 84 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ struct FrameBufferCaps
class FrameBuffer
{
public:
static bool initialize(int width, int height);
static bool initialize(int width, int height, OnPostFn onPost, void* onPostContext);
static bool setupSubWindow(FBNativeWindowType p_window,
int x, int y,
int width, int height, float zRot);
@@ -90,7 +90,7 @@ public:
}
private:
FrameBuffer(int p_width, int p_height);
FrameBuffer(int p_width, int p_height, OnPostFn onPost, void* onPostContext);
~FrameBuffer();
HandleType genHandle();
bool bindSubwin_locked();
@@ -129,5 +129,9 @@ private:
int m_statsNumFrames;
long long m_statsStartTime;
bool m_fpsStats;
OnPostFn m_onPost;
void* m_onPostContext;
unsigned char* m_fbImage;
};
#endif