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

Unified Diff: android_webview/browser/browser_view_renderer.cc

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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 | android_webview/browser/browser_view_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer.cc
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc
index 154f9728d61748ce33f751e9c4b080afc0cddb78..ba3defa6fa867c16a79348e24e3f270ea2f22f0a 100644
--- a/android_webview/browser/browser_view_renderer.cc
+++ b/android_webview/browser/browser_view_renderer.cc
@@ -262,7 +262,7 @@ void BrowserViewRenderer::OnDrawHardwareProcessFrame(
gfx::Rect viewport_rect_for_tile_priority =
ComputeViewportRectForTilePriority();
std::unique_ptr<ChildFrame> child_frame = base::MakeUnique<ChildFrame>(
- frame.output_surface_id, std::move(frame.frame), compositor_id_,
+ frame.compositor_frame_sink_id, std::move(frame.frame), compositor_id_,
viewport_rect_for_tile_priority.IsEmpty(), transform_for_tile_priority,
offscreen_pre_raster_, external_draw_constraints_.is_layer);
@@ -322,7 +322,8 @@ void BrowserViewRenderer::ReturnUnusedResource(
content::SynchronousCompositor* compositor =
FindCompositor(child_frame->compositor_id);
if (compositor && !resources.empty())
- compositor->ReturnResources(child_frame->output_surface_id, resources);
+ compositor->ReturnResources(child_frame->compositor_frame_sink_id,
+ resources);
}
void BrowserViewRenderer::ReturnResourceFromParent(
@@ -336,7 +337,8 @@ void BrowserViewRenderer::ReturnResourceFromParent(
resources.swap(pair.second.resources);
if (compositor && !resources.empty()) {
- compositor->ReturnResources(pair.second.output_surface_id, resources);
+ compositor->ReturnResources(pair.second.compositor_frame_sink_id,
+ resources);
}
}
}
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698