Support Surface and Layer Readback in the SkiaPipelines.

Test: CTS TextureViewTests and UIRendering
Change-Id: I2969c8f5a975bfd9aebcbb585c64d1fcbb2487c2
This commit is contained in:
Derek Sollenberger
2016-11-07 16:05:41 -05:00
parent de4355dd59
commit c4fbada76a
13 changed files with 359 additions and 95 deletions

View File

@ -602,8 +602,8 @@ void RenderProxy::removeFrameMetricsObserver(FrameMetricsObserver* observer) {
CREATE_BRIDGE4(copySurfaceInto, RenderThread* thread,
Surface* surface, Rect srcRect, SkBitmap* bitmap) {
return (void*) Readback::copySurfaceInto(*args->thread,
*args->surface, args->srcRect, args->bitmap);
return (void*)args->thread->readback().copySurfaceInto(*args->surface,
args->srcRect, args->bitmap);
}
int RenderProxy::copySurfaceInto(sp<Surface>& surface, int left, int top,