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

Unified Diff: mojo/services/html_viewer/weblayertreeview_impl.cc

Issue 808553007: Move HTMLViewer out of mojo namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge mistake in test Created 6 years 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: mojo/services/html_viewer/weblayertreeview_impl.cc
diff --git a/mojo/services/html_viewer/weblayertreeview_impl.cc b/mojo/services/html_viewer/weblayertreeview_impl.cc
index 769e4deefe1e67f02855e45076c3a4c4672dbd71..a0e26f8b71914b2440adfff6d455c7ec9a010f69 100644
--- a/mojo/services/html_viewer/weblayertreeview_impl.cc
+++ b/mojo/services/html_viewer/weblayertreeview_impl.cc
@@ -16,12 +16,12 @@
#include "mojo/services/view_manager/public/cpp/view.h"
#include "third_party/WebKit/public/web/WebWidget.h"
-namespace mojo {
+namespace html_viewer {
WebLayerTreeViewImpl::WebLayerTreeViewImpl(
scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy,
- SurfacesServicePtr surfaces_service,
- GpuPtr gpu_service)
+ mojo::SurfacesServicePtr surfaces_service,
+ mojo::GpuPtr gpu_service)
: widget_(NULL),
view_(NULL),
surfaces_service_(surfaces_service.Pass()),
@@ -232,13 +232,13 @@ void WebLayerTreeViewImpl::finishAllRendering() {
layer_tree_host_->FinishAllRendering();
}
-void WebLayerTreeViewImpl::OnSurfaceConnectionCreated(SurfacePtr surface,
+void WebLayerTreeViewImpl::OnSurfaceConnectionCreated(mojo::SurfacePtr surface,
uint32_t id_namespace) {
- CommandBufferPtr cb;
+ mojo::CommandBufferPtr cb;
gpu_service_->CreateOffscreenGLES2Context(GetProxy(&cb));
scoped_refptr<cc::ContextProvider> context_provider(
- new ContextProviderMojo(cb.PassMessagePipe()));
- output_surface_.reset(new OutputSurfaceMojo(
+ new mojo::ContextProviderMojo(cb.PassMessagePipe()));
+ output_surface_.reset(new mojo::OutputSurfaceMojo(
this, context_provider, surface.Pass(), id_namespace));
layer_tree_host_->SetLayerTreeHostClientReady();
}
@@ -252,7 +252,7 @@ void WebLayerTreeViewImpl::DidCreateSurface(cc::SurfaceId id) {
}
void WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread(cc::SurfaceId id) {
- view_->SetSurfaceId(SurfaceId::From(id));
+ view_->SetSurfaceId(mojo::SurfaceId::From(id));
}
-} // namespace mojo
+} // namespace html_viewer
« no previous file with comments | « mojo/services/html_viewer/weblayertreeview_impl.h ('k') | mojo/services/html_viewer/webmediaplayer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698