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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 21052007: aura: Clean up compositor initialization/destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanupcompositor: All work maybe? Created 7 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/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index f95a70e40e947de0ed18ae0937aad329d08556cc..fd11407aa87c441f3ddb68e150869b3f306f39a8 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1224,6 +1224,7 @@ void RenderWidgetHostViewAura::CopyFromCompositingSurfaceToVideoFrame(
return;
}
+ LOG(INFO) << "SEND Frame to CopyOutputRequest";
scoped_ptr<cc::CopyOutputRequest> request =
cc::CopyOutputRequest::CreateRequest(base::Bind(
&RenderWidgetHostViewAura::
@@ -1375,6 +1376,7 @@ void RenderWidgetHostViewAura::SwapBuffersCompleted(
current_surface_->size())),
frame,
base::Bind(callback, present_time));
+ LOG(INFO) << "SEND Frame to CopyFromCompositingSurfaceToVideoFrame";
}
}
@@ -1851,6 +1853,8 @@ void RenderWidgetHostViewAura::CopyFromCompositingSurfaceHasResultForVideo(
scoped_ptr<cc::CopyOutputResult> result) {
base::ScopedClosureRunner scoped_callback_runner(base::Bind(callback, false));
+ LOG(INFO) << "CopyFromCompositingSurfaceHasResultForVideo";
+
if (!rwhva)
return;
@@ -1930,11 +1934,13 @@ void RenderWidgetHostViewAura::CopyFromCompositingSurfaceHasResultForVideo(
&CopyFromCompositingSurfaceFinishedForVideo,
callback,
texture_mailbox->callback());
+ LOG(INFO) << "Pass video frame to Readback YUV";
yuv_readback_pipeline->ReadbackYUV(
texture_mailbox->name(),
texture_mailbox->sync_point(),
video_frame.get(),
finished_callback);
+ LOG(INFO) << "Done with it here.";
}
void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) {

Powered by Google App Engine
This is Rietveld 408576698