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

Unified Diff: content/test/test_render_view_host.cc

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 years, 5 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/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index 29fc6f7c8b8d9649435e149c928e37ee873ad415..40067367d573d7c72e5312581e86bc39d323a01c 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -64,11 +64,13 @@ TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
is_occluded_(false),
did_swap_compositor_frame_(false) {
#if defined(OS_ANDROID)
- surface_id_allocator_ = CreateSurfaceIdAllocator();
+ surface_id_allocator_ =
+ base::WrapUnique(new cc::SurfaceIdAllocator(AllocateSurfaceClientId()));
#else
// Not all tests initialize or need an image transport factory.
if (ImageTransportFactory::GetInstance())
- surface_id_allocator_ = CreateSurfaceIdAllocator();
+ surface_id_allocator_ =
+ base::WrapUnique(new cc::SurfaceIdAllocator(AllocateSurfaceClientId()));
#endif
rwh_->SetView(this);
@@ -194,6 +196,7 @@ gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() {
void TestRenderWidgetHostView::OnSwapCompositorFrame(
uint32_t output_surface_id,
+ const cc::SurfaceId& surface_id,
cc::CompositorFrame frame) {
did_swap_compositor_frame_ = true;
}
« no previous file with comments | « content/test/test_render_view_host.h ('k') | services/ui/gpu/display_compositor/compositor_frame_sink_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698