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

Unified Diff: content/browser/frame_host/render_widget_host_view_guest_unittest.cc

Issue 2780713004: Hide compositor_frame_sink_id from RenderWidgetHostView* (Closed)
Patch Set: Added a comment in android Created 3 years, 9 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
Index: content/browser/frame_host/render_widget_host_view_guest_unittest.cc
diff --git a/content/browser/frame_host/render_widget_host_view_guest_unittest.cc b/content/browser/frame_host/render_widget_host_view_guest_unittest.cc
index 1cc94463ec4bf919ebb2898d757df0c150dcab21..b69ac0d99af7028c35e2487dae14e7bd8c5dff6d 100644
--- a/content/browser/frame_host/render_widget_host_view_guest_unittest.cc
+++ b/content/browser/frame_host/render_widget_host_view_guest_unittest.cc
@@ -238,8 +238,8 @@ TEST_F(RenderWidgetHostViewGuestSurfaceTest, TestGuestSurface) {
view_->Show();
browser_plugin_guest_->set_attached(true);
- view_->OnSwapCompositorFrame(
- 0, local_surface_id,
+ view_->SubmitCompositorFrame(
+ local_surface_id,
CreateDelegatedFrame(scale_factor, view_size, view_rect));
cc::SurfaceId id = GetSurfaceId();
@@ -263,8 +263,8 @@ TEST_F(RenderWidgetHostViewGuestSurfaceTest, TestGuestSurface) {
browser_plugin_guest_->ResetTestData();
browser_plugin_guest_->set_has_attached_since_surface_set(true);
- view_->OnSwapCompositorFrame(
- 0, local_surface_id,
+ view_->SubmitCompositorFrame(
+ local_surface_id,
CreateDelegatedFrame(scale_factor, view_size, view_rect));
// Since we have not changed the frame size and scale factor, the same surface
@@ -286,8 +286,8 @@ TEST_F(RenderWidgetHostViewGuestSurfaceTest, TestGuestSurface) {
browser_plugin_guest_->set_attached(false);
browser_plugin_guest_->ResetTestData();
- view_->OnSwapCompositorFrame(
- 0, local_surface_id,
+ view_->SubmitCompositorFrame(
+ local_surface_id,
CreateDelegatedFrame(scale_factor, view_size, view_rect));
// Since guest is not attached, the CompositorFrame must be processed but the
// frame must be evicted to return the resources immediately.

Powered by Google App Engine
This is Rietveld 408576698