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

Unified Diff: components/html_viewer/html_frame.cc

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added plumbing for returning resources Created 5 years, 4 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: components/html_viewer/html_frame.cc
diff --git a/components/html_viewer/html_frame.cc b/components/html_viewer/html_frame.cc
index 0ce2a90bac07850fdbd15aab7adca0357c388b51..c8950820d79a0db05a49a418c14c0acdc54a0d26 100644
--- a/components/html_viewer/html_frame.cc
+++ b/components/html_viewer/html_frame.cc
@@ -33,7 +33,7 @@
#include "components/view_manager/public/cpp/scoped_view_ptr.h"
#include "components/view_manager/public/cpp/view.h"
#include "components/view_manager/public/cpp/view_manager.h"
-#include "components/view_manager/public/interfaces/surfaces.mojom.h"
+#include "mandoline/services/navigation/public/interfaces/navigation.mojom.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/application/public/cpp/connect.h"
#include "mojo/application/public/interfaces/shell.mojom.h"
@@ -588,10 +588,10 @@ void HTMLFrame::didChangeContents() {
}
void HTMLFrame::initializeLayerTreeView() {
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:view_manager");
- mojo::SurfacePtr surface;
- GetLocalRootApp()->ConnectToService(request.Pass(), &surface);
+ DCHECK(view());
+
+ mojo::CompositorFrameReceiverPtr receiver;
+ view()->RequestCompositorFrameReceiver(mojo::GetProxy(&receiver));
mojo::URLRequestPtr request2(mojo::URLRequest::New());
request2->url = mojo::String::From("mojo:view_manager");
@@ -601,7 +601,7 @@ void HTMLFrame::initializeLayerTreeView() {
global_state()->compositor_thread(),
global_state()->gpu_memory_buffer_manager(),
global_state()->raster_thread_helper()->task_graph_runner(),
- surface.Pass(), gpu_service.Pass()));
+ receiver.Pass(), gpu_service.Pass()));
}
blink::WebLayerTreeView* HTMLFrame::layerTreeView() {

Powered by Google App Engine
This is Rietveld 408576698