Loading libs/hwui/RenderProperties.h +2 −3 Original line number Diff line number Diff line Loading @@ -56,11 +56,10 @@ class RenderProperties; // Keep in sync with View.java:LAYER_TYPE_* enum class LayerType { None = 0, // Although we cannot build the software layer directly (must be done at // record time), this information is used when applying alpha. // We cannot build the software layer directly (must be done at record time) and all management // of software layers is handled in Java. Software = 1, RenderLayer = 2, // TODO: LayerTypeSurfaceTexture? Maybe? }; enum ClippingFlags { Loading libs/hwui/pipeline/skia/RenderNodeDrawable.cpp +0 −12 Original line number Diff line number Diff line Loading @@ -226,18 +226,6 @@ void RenderNodeDrawable::drawContent(SkCanvas* canvas) const { canvas->drawRect(bounds, transparentPaint); } } // composing a software layer with alpha } else if (properties.effectiveLayerType() == LayerType::Software) { SkPaint paint; bool needsLayer = layerNeedsPaint(layerProperties, alphaMultiplier, &paint); if (needsLayer) { canvas->saveLayer(bounds, &paint); } displayList->draw(canvas); if (needsLayer) { canvas->restore(); } } else { if (alphaMultiplier < 1.0f) { // Non-layer draw for a view with getHasOverlappingRendering=false, will apply Loading Loading
libs/hwui/RenderProperties.h +2 −3 Original line number Diff line number Diff line Loading @@ -56,11 +56,10 @@ class RenderProperties; // Keep in sync with View.java:LAYER_TYPE_* enum class LayerType { None = 0, // Although we cannot build the software layer directly (must be done at // record time), this information is used when applying alpha. // We cannot build the software layer directly (must be done at record time) and all management // of software layers is handled in Java. Software = 1, RenderLayer = 2, // TODO: LayerTypeSurfaceTexture? Maybe? }; enum ClippingFlags { Loading
libs/hwui/pipeline/skia/RenderNodeDrawable.cpp +0 −12 Original line number Diff line number Diff line Loading @@ -226,18 +226,6 @@ void RenderNodeDrawable::drawContent(SkCanvas* canvas) const { canvas->drawRect(bounds, transparentPaint); } } // composing a software layer with alpha } else if (properties.effectiveLayerType() == LayerType::Software) { SkPaint paint; bool needsLayer = layerNeedsPaint(layerProperties, alphaMultiplier, &paint); if (needsLayer) { canvas->saveLayer(bounds, &paint); } displayList->draw(canvas); if (needsLayer) { canvas->restore(); } } else { if (alphaMultiplier < 1.0f) { // Non-layer draw for a view with getHasOverlappingRendering=false, will apply Loading