mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add the ability to customize the animation frame rate (issue #697).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@739 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -238,6 +238,13 @@ typedef struct _cef_browser_settings_t {
|
||||
///
|
||||
bool history_disabled;
|
||||
|
||||
///
|
||||
// The number of frames per second (fps) for the requestAnimationFrame timer
|
||||
// and calls to CefRenderHandler::OnPaint(). The value must be between 0 and
|
||||
// 90. Specify zero for the default frame rate of 30 fps.
|
||||
///
|
||||
int animation_frame_rate;
|
||||
|
||||
// The below values map to WebPreferences settings.
|
||||
|
||||
///
|
||||
|
@@ -331,6 +331,7 @@ struct CefBrowserSettingsTraits {
|
||||
target->drag_drop_disabled = src->drag_drop_disabled;
|
||||
target->load_drops_disabled = src->load_drops_disabled;
|
||||
target->history_disabled = src->history_disabled;
|
||||
target->animation_frame_rate = src->animation_frame_rate;
|
||||
|
||||
cef_string_set(src->standard_font_family.str,
|
||||
src->standard_font_family.length, &target->standard_font_family, copy);
|
||||
|
Reference in New Issue
Block a user