Commit a955a22f authored by xlai's avatar xlai Committed by Commit Bot

Clean up Canvas heuristics after display list 2d mode is removed

Bug: 776826
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: I4c94e829690b37da7029fdf1105731fbf6c2b0b6
Reviewed-on: https://chromium-review.googlesource.com/809607Reviewed-by: default avatarJustin Novosad <junov@chromium.org>
Commit-Queue: Olivia Lai <xlai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521892}
parent 21164c2c
...@@ -10,25 +10,13 @@ namespace blink { ...@@ -10,25 +10,13 @@ namespace blink {
namespace CanvasHeuristicParameters { namespace CanvasHeuristicParameters {
enum { enum {
// Layer promotion heuristic parameters // Disable Deferral overdraw parameters
//====================================== //======================================
// FIXME (crbug.com/463239):
// The Layer promotion heuristics should go away after slimming paint
// is completely phased in and display list canvases are modified to
// use a lightweight layering primitive instead of the
// SkCanvas::saveLayer.
// Heuristic: Canvases that are overdrawn beyond this factor in a // Heuristic: Canvases that are overdrawn beyond this factor in a
// single frame are promoted to a direct composited layer so that // single frame will be disabled deferral.
// their contents not be re-rasterized by the compositor when the
// containing layer is the object of a paint invalidation.
kExpensiveOverdrawThreshold = 10, kExpensiveOverdrawThreshold = 10,
kComplexClipsAreExpensive = 1,
kBlurredShadowsAreExpensive = 1,
// Disable Acceleration heuristic parameters // Disable Acceleration heuristic parameters
//=========================================== //===========================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment