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:
Marshall Greenblatt
2012-08-14 23:33:57 +00:00
parent a189761144
commit 03ced41cf2
16 changed files with 128 additions and 113 deletions

View File

@@ -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.
///

View File

@@ -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);