Merge "Force a repaint when hwc invalidate hook is called"

This commit is contained in:
Mathias Agopian
2011-10-05 15:09:46 -07:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ void HWComposer::hook_invalidate(struct hwc_procs* procs) {
} }
void HWComposer::invalidate() { void HWComposer::invalidate() {
mFlinger->signalEvent(); mFlinger->repaintEverything();
} }
void HWComposer::setFrameBuffer(EGLDisplay dpy, EGLSurface sur) { void HWComposer::setFrameBuffer(EGLDisplay dpy, EGLSurface sur) {

View File

@@ -256,12 +256,11 @@ private:
public: // hack to work around gcc 4.0.3 bug public: // hack to work around gcc 4.0.3 bug
const GraphicPlane& graphicPlane(int dpy) const; const GraphicPlane& graphicPlane(int dpy) const;
GraphicPlane& graphicPlane(int dpy); GraphicPlane& graphicPlane(int dpy);
private: void signalEvent();
void repaintEverything();
void waitForEvent();
public: // hack to work around gcc 4.0.3 bug
void signalEvent();
private: private:
void waitForEvent();
void handleConsoleEvents(); void handleConsoleEvents();
void handleTransaction(uint32_t transactionFlags); void handleTransaction(uint32_t transactionFlags);
void handleTransactionLocked(uint32_t transactionFlags); void handleTransactionLocked(uint32_t transactionFlags);
@@ -279,7 +278,6 @@ private:
void postFramebuffer(); void postFramebuffer();
void setupHardwareComposer(Region& dirtyInOut); void setupHardwareComposer(Region& dirtyInOut);
void composeSurfaces(const Region& dirty); void composeSurfaces(const Region& dirty);
void repaintEverything();
ssize_t addClientLayer(const sp<Client>& client, ssize_t addClientLayer(const sp<Client>& client,