mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Improve the handling of invalidation/painting for off-screen rendering (issue #695).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@745 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -61,6 +61,10 @@ void RunOSRPluginTest(CefRefPtr<CefBrowser> browser, bool transparent) {
|
||||
// Transparency test.
|
||||
browser->GetMainFrame()->LoadURL(
|
||||
"http://tests/transparency");
|
||||
} else if(elementId == "testAnimation") {
|
||||
// requestAnimationFrame test.
|
||||
browser->GetMainFrame()->LoadURL(
|
||||
"http://mrdoob.com/lab/javascript/requestanimationframe/");
|
||||
} else if (elementId == "testWindowlessPlugin") {
|
||||
// Load flash, which is a windowless plugin.
|
||||
browser->GetMainFrame()->LoadURL(
|
||||
@@ -99,6 +103,7 @@ void RunOSRPluginTest(CefRefPtr<CefBrowser> browser, bool transparent) {
|
||||
RegisterClickListener(document, listener, "reload");
|
||||
RegisterClickListener(document, listener, "go");
|
||||
RegisterClickListener(document, listener, "testTransparency");
|
||||
RegisterClickListener(document, listener, "testAnimation");
|
||||
RegisterClickListener(document, listener, "testWindowlessPlugin");
|
||||
RegisterClickListener(document, listener, "viewSource");
|
||||
}
|
||||
@@ -109,7 +114,7 @@ void RunOSRPluginTest(CefRefPtr<CefBrowser> browser, bool transparent) {
|
||||
// Center the window on the screen.
|
||||
int screenX = GetSystemMetrics(SM_CXFULLSCREEN);
|
||||
int screenY = GetSystemMetrics(SM_CYFULLSCREEN);
|
||||
int width = 1000, height = 760;
|
||||
int width = 1000, height = 780;
|
||||
int x = (screenX - width) / 2;
|
||||
int y = (screenY - height) / 2;
|
||||
|
||||
|
Reference in New Issue
Block a user