OSDN Git Service

Use implementation-defined format when HWC writes to output buffer
authorJesse Hall <jessehall@google.com>
Fri, 27 Sep 2013 16:05:09 +0000 (09:05 -0700)
committerJesse Hall <jessehall@google.com>
Thu, 17 Oct 2013 18:20:22 +0000 (11:20 -0700)
commit1e27ba234c5bfd4f6535ee221a6c20407a50f868
tree3edb31d034068841b0fb6541bb36f4d4b53fe24f
parentdacd4159631865da1a02203fe5fa7c5f1339cda9
Use implementation-defined format when HWC writes to output buffer

When GLES isn't writing to the output buffer directly, request an
implementation-defined format with minimal usage flags, leaving the
format choice up to gralloc. On some hardware this allows HWC to do
format conversions during composition that would otherwise need to be
done (with worse power and/or performance) by the consumer.

Bug: 8316155
Change-Id: Iee6ee8404282036f9fd1833067cfe11dbadbf0bf
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.h