Loading libs/hwui/Extensions.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -31,11 +31,7 @@ namespace android { namespace uirenderer { Extensions::Extensions() { if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaVulkan) { // Extensions class is used only by OpenGL and SkiaGL pipelines // The code below will crash for SkiaVulkan, because OpenGL is not initialized // TODO: instantiate Extensions class only for OpenGL pipeline // TODO: remove the only usage of Extensions by SkiaGL in SkiaOpenGLReadback::copyImageInto if (Properties::isSkiaEnabled()) { return; } const char* version = (const char*)glGetString(GL_VERSION); Loading libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp +1 −7 Original line number Diff line number Diff line Loading @@ -66,14 +66,8 @@ CopyResult SkiaOpenGLReadback::copyImageInto(EGLImageKHR eglImage, const Matrix4 break; } /* Ideally, we would call grContext->caps()->isConfigRenderable(...). We * currently can't do that since some devices (i.e. SwiftShader) supports all * the appropriate half float extensions, but only allow the buffer to be read * back as full floats. We can relax this extension if Skia implements support * for reading back float buffers (skbug.com/6945). */ if (pixelConfig == kRGBA_half_GrPixelConfig && !DeviceInfo::get()->extensions().hasRenderableFloatTextures()) { !grContext->caps()->isConfigRenderable(kRGBA_half_GrPixelConfig, false)) { ALOGW("Can't copy surface into bitmap, RGBA_F16 config is not supported"); return CopyResult::DestinationInvalid; } Loading Loading
libs/hwui/Extensions.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -31,11 +31,7 @@ namespace android { namespace uirenderer { Extensions::Extensions() { if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaVulkan) { // Extensions class is used only by OpenGL and SkiaGL pipelines // The code below will crash for SkiaVulkan, because OpenGL is not initialized // TODO: instantiate Extensions class only for OpenGL pipeline // TODO: remove the only usage of Extensions by SkiaGL in SkiaOpenGLReadback::copyImageInto if (Properties::isSkiaEnabled()) { return; } const char* version = (const char*)glGetString(GL_VERSION); Loading
libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp +1 −7 Original line number Diff line number Diff line Loading @@ -66,14 +66,8 @@ CopyResult SkiaOpenGLReadback::copyImageInto(EGLImageKHR eglImage, const Matrix4 break; } /* Ideally, we would call grContext->caps()->isConfigRenderable(...). We * currently can't do that since some devices (i.e. SwiftShader) supports all * the appropriate half float extensions, but only allow the buffer to be read * back as full floats. We can relax this extension if Skia implements support * for reading back float buffers (skbug.com/6945). */ if (pixelConfig == kRGBA_half_GrPixelConfig && !DeviceInfo::get()->extensions().hasRenderableFloatTextures()) { !grContext->caps()->isConfigRenderable(kRGBA_half_GrPixelConfig, false)) { ALOGW("Can't copy surface into bitmap, RGBA_F16 config is not supported"); return CopyResult::DestinationInvalid; } Loading