cloudtrends / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
1 stars 1 forks source link

Browser not resizing correctly when page has an html5 canvas #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce problem:
1. Navigate to http://dl.dropbox.com/u/9193041/index.html in cefclient
2. Resize the window a bit, notice that it looks fine
3. Click the "Create Canvas" button
4. Resize the window a bit ...

What I expected to see:
A grid to be drawn using a canvas element, and the resizing to work as before.

What I saw instead:
The grid is drawn, but resizing creates black bits round the edges of the 
window. The visible area is only ever the original size of the window.

Versions:
CEF r138
Chromium r66269
Built with VS2008
Windows 7 64-bit
GeForce 8800 GTS

I've also attached screenshots.

Original issue reported on code.google.com by philgates@gmail.com on 2 Dec 2010 at 5:03

Attachments:

GoogleCodeExporter commented 9 years ago
Looks like a buggy interaction between accelerated compositing and accelerated 
2d canvas. If you update to revision 149 you can disable either one to fix the 
problem. Set either the accelerated_compositing_disabled or the 
accelerated_2d_canvas_disabled member of CefBrowserSettings to true.

Original comment by magreenb...@gmail.com on 2 Dec 2010 at 9:06

GoogleCodeExporter commented 9 years ago
Quite right, turning off either of these options appears to work around the 
issue.

Original comment by philgates@gmail.com on 5 Dec 2010 at 11:27

GoogleCodeExporter commented 9 years ago
Resize appears to be working correctly with accelerated compositing and 2D 
canvas enabled on Windows with CEF revision 243.

Original comment by magreenb...@gmail.com on 23 May 2011 at 11:55