Loading libs/hwui/Properties.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -214,8 +214,8 @@ RenderPipelineType Properties::getRenderPipelineType() { property_get(PROPERTY_DEFAULT_RENDERER, prop, "opengl"); property_get(PROPERTY_DEFAULT_RENDERER, prop, "opengl"); if (!strcmp(prop, "skiagl") ) { if (!strcmp(prop, "skiagl") ) { sRenderPipelineType = RenderPipelineType::SkiaGL; sRenderPipelineType = RenderPipelineType::SkiaGL; } else if (!strcmp(prop, "vulkan") ) { } else if (!strcmp(prop, "skiavulkan") ) { sRenderPipelineType = RenderPipelineType::Vulkan; sRenderPipelineType = RenderPipelineType::SkiaVulkan; } else { //"opengl" } else { //"opengl" sRenderPipelineType = RenderPipelineType::OpenGL; sRenderPipelineType = RenderPipelineType::OpenGL; } } Loading libs/hwui/Properties.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -253,7 +253,7 @@ enum class StencilClipDebug { enum class RenderPipelineType { enum class RenderPipelineType { OpenGL = 0, OpenGL = 0, SkiaGL, SkiaGL, Vulkan, SkiaVulkan, NotInitialized = 128 NotInitialized = 128 }; }; Loading libs/hwui/renderthread/CanvasContext.cpp +1 −6 Original line number Original line Diff line number Diff line Loading @@ -75,7 +75,7 @@ CanvasContext* CanvasContext::create(RenderThread& thread, //TODO: implement SKIA GL //TODO: implement SKIA GL LOG_ALWAYS_FATAL("skiaGL canvas type not implemented."); LOG_ALWAYS_FATAL("skiaGL canvas type not implemented."); break; break; case RenderPipelineType::Vulkan: case RenderPipelineType::SkiaVulkan: //TODO: implement Vulkan //TODO: implement Vulkan LOG_ALWAYS_FATAL("Vulkan canvas type not implemented."); LOG_ALWAYS_FATAL("Vulkan canvas type not implemented."); break; break; Loading Loading @@ -607,11 +607,6 @@ int64_t CanvasContext::getFrameNumber() { return mFrameNumber; return mFrameNumber; } } bool CanvasContext::isSkiaEnabled() { auto renderType = Properties::getRenderPipelineType(); return RenderPipelineType::SkiaGL == renderType || RenderPipelineType::Vulkan == renderType; } SkRect CanvasContext::computeDirtyRect(const Frame& frame, SkRect* dirty) { SkRect CanvasContext::computeDirtyRect(const Frame& frame, SkRect* dirty) { if (frame.width() != mLastFrameWidth || frame.height() != mLastFrameHeight) { if (frame.width() != mLastFrameWidth || frame.height() != mLastFrameHeight) { // can't rely on prior content of window if viewport size changes // can't rely on prior content of window if viewport size changes Loading libs/hwui/renderthread/CanvasContext.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -99,7 +99,6 @@ public: static void trimMemory(RenderThread& thread, int level); static void trimMemory(RenderThread& thread, int level); static void invokeFunctor(RenderThread& thread, Functor* functor); static void invokeFunctor(RenderThread& thread, Functor* functor); static bool isSkiaEnabled(); Layer* createTextureLayer(); Layer* createTextureLayer(); Loading Loading
libs/hwui/Properties.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -214,8 +214,8 @@ RenderPipelineType Properties::getRenderPipelineType() { property_get(PROPERTY_DEFAULT_RENDERER, prop, "opengl"); property_get(PROPERTY_DEFAULT_RENDERER, prop, "opengl"); if (!strcmp(prop, "skiagl") ) { if (!strcmp(prop, "skiagl") ) { sRenderPipelineType = RenderPipelineType::SkiaGL; sRenderPipelineType = RenderPipelineType::SkiaGL; } else if (!strcmp(prop, "vulkan") ) { } else if (!strcmp(prop, "skiavulkan") ) { sRenderPipelineType = RenderPipelineType::Vulkan; sRenderPipelineType = RenderPipelineType::SkiaVulkan; } else { //"opengl" } else { //"opengl" sRenderPipelineType = RenderPipelineType::OpenGL; sRenderPipelineType = RenderPipelineType::OpenGL; } } Loading
libs/hwui/Properties.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -253,7 +253,7 @@ enum class StencilClipDebug { enum class RenderPipelineType { enum class RenderPipelineType { OpenGL = 0, OpenGL = 0, SkiaGL, SkiaGL, Vulkan, SkiaVulkan, NotInitialized = 128 NotInitialized = 128 }; }; Loading
libs/hwui/renderthread/CanvasContext.cpp +1 −6 Original line number Original line Diff line number Diff line Loading @@ -75,7 +75,7 @@ CanvasContext* CanvasContext::create(RenderThread& thread, //TODO: implement SKIA GL //TODO: implement SKIA GL LOG_ALWAYS_FATAL("skiaGL canvas type not implemented."); LOG_ALWAYS_FATAL("skiaGL canvas type not implemented."); break; break; case RenderPipelineType::Vulkan: case RenderPipelineType::SkiaVulkan: //TODO: implement Vulkan //TODO: implement Vulkan LOG_ALWAYS_FATAL("Vulkan canvas type not implemented."); LOG_ALWAYS_FATAL("Vulkan canvas type not implemented."); break; break; Loading Loading @@ -607,11 +607,6 @@ int64_t CanvasContext::getFrameNumber() { return mFrameNumber; return mFrameNumber; } } bool CanvasContext::isSkiaEnabled() { auto renderType = Properties::getRenderPipelineType(); return RenderPipelineType::SkiaGL == renderType || RenderPipelineType::Vulkan == renderType; } SkRect CanvasContext::computeDirtyRect(const Frame& frame, SkRect* dirty) { SkRect CanvasContext::computeDirtyRect(const Frame& frame, SkRect* dirty) { if (frame.width() != mLastFrameWidth || frame.height() != mLastFrameHeight) { if (frame.width() != mLastFrameWidth || frame.height() != mLastFrameHeight) { // can't rely on prior content of window if viewport size changes // can't rely on prior content of window if viewport size changes Loading
libs/hwui/renderthread/CanvasContext.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -99,7 +99,6 @@ public: static void trimMemory(RenderThread& thread, int level); static void trimMemory(RenderThread& thread, int level); static void invokeFunctor(RenderThread& thread, Functor* functor); static void invokeFunctor(RenderThread& thread, Functor* functor); static bool isSkiaEnabled(); Layer* createTextureLayer(); Layer* createTextureLayer(); Loading