Skip to content

Commit 1302d32

Browse files
pixelflingerAndroid (Google) Code Review
authored andcommitted
Merge "Force a repaint when hwc invalidate hook is called"
2 parents cfb753a + edaab94 commit 1302d32

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

services/surfaceflinger/DisplayHardware/HWComposer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void HWComposer::hook_invalidate(struct hwc_procs* procs) {
7575
}
7676

7777
void HWComposer::invalidate() {
78-
mFlinger->signalEvent();
78+
mFlinger->repaintEverything();
7979
}
8080

8181
void HWComposer::setFrameBuffer(EGLDisplay dpy, EGLSurface sur) {

services/surfaceflinger/SurfaceFlinger.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,11 @@ class SurfaceFlinger :
256256
public: // hack to work around gcc 4.0.3 bug
257257
const GraphicPlane& graphicPlane(int dpy) const;
258258
GraphicPlane& graphicPlane(int dpy);
259-
private:
259+
void signalEvent();
260+
void repaintEverything();
260261

261-
void waitForEvent();
262-
public: // hack to work around gcc 4.0.3 bug
263-
void signalEvent();
264262
private:
263+
void waitForEvent();
265264
void handleConsoleEvents();
266265
void handleTransaction(uint32_t transactionFlags);
267266
void handleTransactionLocked(uint32_t transactionFlags);
@@ -279,7 +278,6 @@ class SurfaceFlinger :
279278
void postFramebuffer();
280279
void setupHardwareComposer(Region& dirtyInOut);
281280
void composeSurfaces(const Region& dirty);
282-
void repaintEverything();
283281

284282

285283
ssize_t addClientLayer(const sp<Client>& client,

0 commit comments

Comments
 (0)