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

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

Issue 1472063007: mustash: enable GPU Compositing in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_mus.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_mus.cc b/content/browser/renderer_host/render_widget_host_view_mus.cc
index 08e0058c355185bd42011ae0efded45d41c93d59..5fa1e3ad5a68ba78267f2f47b1e01969ecb6a7da 100644
--- a/content/browser/renderer_host/render_widget_host_view_mus.cc
+++ b/content/browser/renderer_host/render_widget_host_view_mus.cc
@@ -4,6 +4,8 @@
#include "content/browser/renderer_host/render_widget_host_view_mus.h"
+#include "base/debug/stack_trace.h"
+
#include "components/mus/public/cpp/window.h"
#include "components/mus/public/cpp/window_tree_connection.h"
#include "content/browser/mojo/mojo_shell_client_host.h"
@@ -19,11 +21,17 @@ struct WebScreenInfo;
namespace content {
+void DoNothing(bool result) {
+ fprintf(stderr, "EEE %s %d\n", __func__, __LINE__);
+}
+
RenderWidgetHostViewMus::RenderWidgetHostViewMus(
mus::Window* parent_window,
RenderWidgetHostImpl* host,
base::WeakPtr<RenderWidgetHostViewBase> platform_view)
: host_(host), platform_view_(platform_view) {
+ // base::debug::StackTrace().Print();
+ //
DCHECK(parent_window);
mus::Window* window = parent_window->connection()->NewWindow();
window->SetVisible(true);
@@ -40,7 +48,11 @@ RenderWidgetHostViewMus::RenderWidgetHostViewMus(
mus::mojom::WindowTreeClientPtr window_tree_client;
factory->CreateWindowTreeClientForRenderWidget(
- host_->GetRoutingID(), mojo::GetProxy(&window_tree_client));
+ host_->GetRoutingID(), mojo::GetProxy(&window_tree_client),
+ DoNothing);
Peng 2015/11/26 22:13:04 Looks like in the browser process, this function i
Fady Samuel 2015/11/27 00:26:21 Mojo IPCs and Chrome IPCs can be issued out of ord
+ fprintf(stderr, "EEE %s %d\n", __func__, __LINE__);
+ factory.WaitForIncomingResponse();
Peng 2015/11/27 15:08:03 I think WaitForImcomingResponse() should block cur
+ fprintf(stderr, "EEE %s %d\n", __func__, __LINE__);
window_->window()->Embed(window_tree_client.Pass());
}
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/common/render_widget_window_tree_client_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698