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

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

Issue 2633303003: Clean up RenderWidgetHostView(ChildFrame and Guest) compositing code (Closed)
Patch Set: c Created 3 years, 11 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 | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index bf00133939ade5f614435343523eec7634106a66..748eb7838e28c10cb1d62ee2a538d45690347b48 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -14,6 +14,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "cc/surfaces/surface.h"
+#include "cc/surfaces/surface_info.h"
#include "content/common/browser_plugin/browser_plugin_constants.h"
#include "content/common/browser_plugin/browser_plugin_messages.h"
#include "content/common/view_messages.h"
@@ -120,17 +121,14 @@ bool BrowserPlugin::OnMessageReceived(const IPC::Message& message) {
void BrowserPlugin::OnSetChildFrameSurface(
int browser_plugin_instance_id,
- const cc::SurfaceId& surface_id,
- const gfx::Size& frame_size,
- float scale_factor,
+ const cc::SurfaceInfo& surface_info,
const cc::SurfaceSequence& sequence) {
if (!attached())
return;
EnableCompositing(true);
DCHECK(compositing_helper_.get());
- compositing_helper_->OnSetSurface(
- cc::SurfaceInfo(surface_id, scale_factor, frame_size), sequence);
+ compositing_helper_->OnSetSurface(surface_info, sequence);
}
void BrowserPlugin::SendSatisfySequence(const cc::SurfaceSequence& sequence) {
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698