Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: content/renderer/browser_plugin/old/browser_plugin_channel_manager.cc

Issue 10581034: Force accelerated compositing for browser_plugin guest's RenderView. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated the change to reflect browser_plugin related files moving under old/* dir. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/old/browser_plugin_channel_manager.cc
diff --git a/content/renderer/browser_plugin/old/browser_plugin_channel_manager.cc b/content/renderer/browser_plugin/old/browser_plugin_channel_manager.cc
index e00df2b4ad38b6abaa3472653c7141418bda1aac..eadb8b1f502dab63b9d4fcbcd0de08e38432fd76 100644
--- a/content/renderer/browser_plugin/old/browser_plugin_channel_manager.cc
+++ b/content/renderer/browser_plugin/old/browser_plugin_channel_manager.cc
@@ -12,6 +12,9 @@
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/render_view_impl.h"
#include "ppapi/c/pp_instance.h"
+#include "webkit/glue/webpreferences.h"
+
+using webkit_glue::WebPreferences;
namespace content {
@@ -46,12 +49,19 @@ void BrowserPluginChannelManager::CreateRenderView(
DCHECK(success);
embedder_channels_[params.embedder_channel_name] = channel;
}
+
+ // Force compositing on browser tag guests since software rendering path is
+ // not implemented (yet). Short term solution so force compositing is not
+ // required to be set globally.
+ WebPreferences modified_web_preferences = params.web_preferences;
+ modified_web_preferences.force_compositing_mode = true;
+
RenderViewImpl* render_view =
RenderViewImpl::Create(
params.parent_window,
params.opener_route_id,
params.renderer_preferences,
- params.web_preferences,
+ modified_web_preferences,
new SharedRenderViewCounter(0),
params.view_id,
params.surface_id,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698