improve performance of box-shadow when shadow is solid

UNCONFIRMED
Unassigned

Status

()

Core
Graphics
UNCONFIRMED
6 years ago
6 years ago

People

(Reporter: Giorgio, Unassigned)

Tracking

({perf})

11 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0a1) Gecko/20111211 Firefox/11.0a1
Build ID: 20111211031118

Steps to reproduce:

hello, the style

    box-shadow:inset 0 0 0 2px red;

should have nearly equivalent performances compared to

    border:2px red solid;

testcase: download the single page version of the html5 spec, remove any style but add

*{ border:2px red solid;}
or
*{box-shadow:inset 0 0 0 2px red;}

then scroll the page to see the difference

(p.s. I've noticed this happening also on lighter pages.)
(Reporter)

Comment 1

6 years ago
happens also on xulrunner with a clean profile (tested latest trunk)
hw acceleration is enabled

  Graphics

        Adapter Description
        ATI Radeon HD 4800 Series

        Vendor ID
        1002

        Device ID
        9440

        Adapter RAM
        512

        Adapter Drivers
        aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64

        Driver Version
        8.902.0.0

        Driver Date
        10-12-2011

        Direct2D Enabled
        true

        DirectWrite Enabled
        true (6.1.7601.17514)

        ClearType Parameters
        Gamma: 2200 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 50

        WebGL Renderer
        Google Inc. -- ANGLE (ATI Radeon HD 4800 Series) -- OpenGL ES 2.0 (ANGLE 1.0.0.901)

        GPU Accelerated Windows
        1/1 Direct3D 10

        AzureBackend
        direct2d

Updated

6 years ago
Keywords: perf
Component: Layout: View Rendering → Graphics
QA Contact: layout.view-rendering → thebes
You need to log in before you can comment on or make changes to this bug.