[Webkit-unassigned] [Bug 70634] Mark GraphicsLayers as opaque when possible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 28 14:06:23 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=70634





--- Comment #81 from Dana Jansens <danakj at chromium.org>  2011-11-28 14:06:22 PST ---
(In reply to comment #80)
> Are you talking about -webkit-canvas (i.e. canvas in CSS)? Doesn't currentFrameHasAlpha() just do the right thing for that kind of image?

I think so, the HTMLCanvasElement class.

I presume it would give the right value, but the problem is that currentFrameHasAlpha() is in the Image object.  And grabbing the Image object causes WebGL to paint, which we don't want to do in response to the image contentChanged notification.

Calling RenderImageResource::image() ends up calling:
- RenderImageResourceStyleImage::image()
- StyleGeneratedImage::image()
- CSSImageGeneratorValue::image()
- CSSCanvasValue::image()
- HTMLCanvasElement::copiedImage() which gets the WebGLRenderingContext to paint itself and caches the result.

>From what I can see we need a way to see that it is a canvas/generated image without the above, in order to update the opaque region when image contents change.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list