In the continued development, I found a error or a bug in screenshot application, and the detail is when I play some video on the android device, the screenshot will read a black hole rather than the video's image.
This occurs since many display controllers don't provide access to the hardware composed output, it goes directly to the display and never hits a memory buffer I can read from. So the screenshot code generally only read from the UI buffer and the overlay contents are missing. Not all hardware works this way, but many do.
My screenshot codes just take a copy of the frame. buffer, however, surfaces in an overlay ( often the case with video playback ) doesn't exist in the frame. buffer. So I can't get the video's mirror in my screenshot application.
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/25432352/viewspace-732634/，如需转载，请注明出处，否则将追究法律责任。