diff options
author | Stan Iliev <stani@google.com> | 2016-07-07 12:35:54 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2016-07-07 14:27:20 -0400 |
commit | 03de074d05108fa9fb07c6b847c7163ada5776da (patch) | |
tree | 161b8ab10378c72000221ef563ac9b7cdd81f3ae /libs/hwui/renderthread/RenderProxy.cpp | |
parent | 219d9ba4fae554974fc0d2370f8b4556878307a3 (diff) |
Implement runtime switch to select default renderer mode
Add a system property debug.hwui.default_renderer, which allows
to set rendering mode to OpenGL (default), Skia OpenGL or Vulkan.
Change-Id: I8bca5bacc5108f77437e340ac61f2d8db8cc4c39
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 10a17f82eced..c689544a9e9a 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -55,7 +55,7 @@ namespace renderthread { CREATE_BRIDGE4(createContext, RenderThread* thread, bool translucent, RenderNode* rootRenderNode, IContextFactory* contextFactory) { - return new CanvasContext(*args->thread, args->translucent, + return CanvasContext::create(*args->thread, args->translucent, args->rootRenderNode, args->contextFactory); } |