Add support for WebPreferences accelerated_video_enabled, accelerated_drawing_enabled and accelerated_plugins_enabled (entry #278).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@261 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
572f9f13d6
commit
64d64738b9
|
@ -326,11 +326,26 @@ typedef struct _cef_browser_settings_t
|
|||
///
|
||||
bool accelerated_layers_disabled;
|
||||
|
||||
///
|
||||
// Set to true (1) to disable accelerated video.
|
||||
///
|
||||
bool accelerated_video_disabled;
|
||||
|
||||
///
|
||||
// Set to true (1) to disable accelerated 2d canvas.
|
||||
///
|
||||
bool accelerated_2d_canvas_disabled;
|
||||
|
||||
///
|
||||
// Set to true (1) to disable accelerated drawing.
|
||||
///
|
||||
bool accelerated_drawing_disabled;
|
||||
|
||||
///
|
||||
// Set to true (1) to disable accelerated plugins.
|
||||
///
|
||||
bool accelerated_plugins_disabled;
|
||||
|
||||
///
|
||||
// Set to true (1) to disable developer tools (WebKit inspector).
|
||||
///
|
||||
|
|
|
@ -377,8 +377,11 @@ struct CefBrowserSettingsTraits {
|
|||
target->accelerated_compositing_disabled =
|
||||
src->accelerated_compositing_disabled;
|
||||
target->accelerated_layers_disabled = src->accelerated_layers_disabled;
|
||||
target->accelerated_video_disabled = src->accelerated_video_disabled;
|
||||
target->accelerated_2d_canvas_disabled =
|
||||
src->accelerated_2d_canvas_disabled;
|
||||
target->accelerated_drawing_disabled = src->accelerated_drawing_disabled;
|
||||
target->accelerated_plugins_disabled = src->accelerated_plugins_disabled;
|
||||
target->developer_tools_disabled = src->developer_tools_disabled;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -126,6 +126,9 @@ void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web)
|
|||
web.show_composited_layer_borders = false;
|
||||
web.accelerated_compositing_enabled = !cef.accelerated_compositing_disabled;
|
||||
web.accelerated_layers_enabled = !cef.accelerated_layers_disabled;
|
||||
web.accelerated_video_enabled = !cef.accelerated_video_disabled;
|
||||
web.accelerated_2d_canvas_enabled = !cef.accelerated_2d_canvas_disabled;
|
||||
web.accelerated_drawing_enabled = !cef.accelerated_drawing_disabled;
|
||||
web.accelerated_plugins_enabled = !cef.accelerated_plugins_disabled;
|
||||
web.memory_info_enabled = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue