OSDN Git Service

Move eglSwapBuffers out of HWComposer
authorJesse Hall <jessehall@google.com>
Mon, 30 Jul 2012 05:35:34 +0000 (22:35 -0700)
committerJesse Hall <jessehall@google.com>
Mon, 30 Jul 2012 23:10:49 +0000 (16:10 -0700)
commit34a09ba1efd706323a15633da5044b352988eb5f
treebd432b2c1944df390912a9a8bab959450762ba3b
parent747c480b0e3cf9401ff53421be6a82b23fdc04c2
Move eglSwapBuffers out of HWComposer

Commit 8630320 moved the eglSwapBuffers fallback (for devices with no
HWC implementation) from DisplayHardware to HWComposer. But HWComposer
only knows about the framebuffer EGL display and surface handles if
there is a HWC, so it was always passing bogus handles.

This change moves the eglSwapBuffers fallback up to SurfaceFlinger,
which has access to the framebuffer EGL handles.

Bug: 6886613
Change-Id: Iad3f5ff7c90ee48d7053999e6a4548d6794b6ebd
services/surfaceflinger/DisplayHardware/HWComposer.cpp
services/surfaceflinger/DisplayHardware/HWComposer.h
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h