Merge "Allow translucent RenderNode->Bitmap captures" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-09-05 22:07:48 +00:00
committed by Android (Google) Code Review

View File

@@ -888,7 +888,7 @@ static jobject android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode(
// Render into the surface
{
ContextFactory factory;
RenderProxy proxy{false, renderNode, &factory};
RenderProxy proxy{true, renderNode, &factory};
proxy.loadSystemProperties();
proxy.setSwapBehavior(SwapBehavior::kSwap_discardBuffer);
proxy.initialize(surface);