From 23c38a9ed9c28a9fda438e7d30532aad7a3844f7 Mon Sep 17 00:00:00 2001 From: Stan Iliev Date: Thu, 23 Mar 2017 00:12:50 -0400 Subject: Update VectorDrawables cache at frame start Draw VectorDrawables in GPU backed surface. Render VD cache at the beginning of the frame to avoid context switching. Test: CTS graphics tests pass. Change-Id: Ia14e0ec4049c3fa87f03547fbda44043bf8dd793 --- libs/hwui/renderthread/CanvasContext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/hwui/renderthread') diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h index 738c09141a7a..33eda96a2d77 100644 --- a/libs/hwui/renderthread/CanvasContext.h +++ b/libs/hwui/renderthread/CanvasContext.h @@ -194,6 +194,8 @@ public: void waitOnFences(); + IRenderPipeline* getRenderPipeline() { return mRenderPipeline.get(); } + private: CanvasContext(RenderThread& thread, bool translucent, RenderNode* rootRenderNode, IContextFactory* contextFactory, std::unique_ptr renderPipeline); -- cgit v1.2.3-59-g8ed1b