Avoid pixel GPU readback in saveLayerWithPickup
authorrobertphillips <robertphillips@google.com>
Wed, 16 Dec 2015 13:08:27 +0000 (05:08 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Dec 2015 13:08:27 +0000 (05:08 -0800)
commit7354a4b193aaaeae43fb9ede90e1158fa46c372b
treeeb9a59b67d46c38dc521e957946949ad7ee55bfb
parent5d16fea9e22221be5fbe2866bbcfe8d6f4c6aeac
Avoid pixel GPU readback in saveLayerWithPickup

When the default framebuffer is wrapped in a device for rendering we don't get a GrTexture. This CL adds a copy to a temporary texture in this instance so the rest of the Ganesh pipeline can continue on as usual.

Review URL: https://codereview.chromium.org/1531493002
src/core/SkCanvas.cpp
src/gpu/gl/GrGLDefines.h
src/gpu/gl/GrGLUtil.h