Thursday, April 2, 2015

Screen Capture






Screen capture
  1. SurfaceControl.screenshot(dw, dh, minLayer, maxLayer) (WindowManagerService.java)
  2. public static Bitmap screenshot (SurfaceControl.java)
  3. static jobject nativeScreenshotBitmap (android_view_SurfaceControl.cpp)
  4. pixels->update 
  5. mScreenshot.update
  6. ScreenshotClient::update (SurfaceComposerClient.cpp)
  7. virtual status_t captureScreen (ISurfaceComposer.cpp)
  8. remote()->transact
PS 1  Create outServerChannel and outClientChannel. 
      Each channel has 2 channel objects.

No comments:

Post a Comment