mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Merge revision 741 changes:
- Add the ability to customize the animation frame rate (issue #697). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1025@742 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -437,10 +437,13 @@ NPError NPP_SetWindowImpl(NPP instance, NPWindow* window_info) {
|
||||
|
||||
// Create the off-screen rendering window.
|
||||
CefWindowInfo windowInfo;
|
||||
CefBrowserSettings settings;
|
||||
windowInfo.SetAsOffScreen(plugin->hWnd);
|
||||
if (g_offscreenTransparent)
|
||||
windowInfo.SetTransparentPainting(TRUE);
|
||||
|
||||
CefBrowserSettings settings;
|
||||
AppGetBrowserSettings(settings);
|
||||
|
||||
CefBrowser::CreateBrowser(windowInfo, new ClientOSRHandler(plugin),
|
||||
"http://www.google.com", settings);
|
||||
}
|
||||
|
@@ -7,8 +7,9 @@
|
||||
|
||||
#include "cefclient/osrtest_mac.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "cefclient/osrenderer.h"
|
||||
#include "cefclient/cefclient.h"
|
||||
#include "cefclient/client_popup_handler.h"
|
||||
#include "cefclient/osrenderer.h"
|
||||
#include "cefclient/resource_util.h"
|
||||
#include "cefclient/util.h"
|
||||
|
||||
@@ -735,12 +736,14 @@ void RunTest(bool transparent) {
|
||||
[view release];
|
||||
|
||||
CefWindowInfo info;
|
||||
CefBrowserSettings settings;
|
||||
|
||||
// Initialize the window info as off-screen.
|
||||
info.SetAsOffScreen(view);
|
||||
info.SetTransparentPainting(transparent);
|
||||
|
||||
CefBrowserSettings settings;
|
||||
AppGetBrowserSettings(settings);
|
||||
|
||||
// Creat the browser window.
|
||||
CefBrowser::CreateBrowser(info, new ClientOSRHandler(view),
|
||||
"http://tests/osrtest", settings);
|
||||
|
Reference in New Issue
Block a user