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

Unified Diff: mandoline/ui/aura/surface_binding.cc

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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 | « mandoline/ui/aura/surface_binding.h ('k') | mandoline/ui/aura/surface_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/surface_binding.cc
diff --git a/mandoline/ui/aura/surface_binding.cc b/mandoline/ui/aura/surface_binding.cc
index df2299ea65c9bf2ad2c95bc11dfc82d039d76c5c..80483737c5d3b588bb3d4942c56ae48e96f69bee 100644
--- a/mandoline/ui/aura/surface_binding.cc
+++ b/mandoline/ui/aura/surface_binding.cc
@@ -42,17 +42,17 @@ class SurfaceBinding::PerConnectionState
: public base::RefCounted<PerConnectionState> {
public:
static PerConnectionState* Get(mojo::Shell* shell,
- mojo::ViewTreeConnection* connection);
+ mus::ViewTreeConnection* connection);
- scoped_ptr<cc::OutputSurface> CreateOutputSurface(mojo::View* view);
+ scoped_ptr<cc::OutputSurface> CreateOutputSurface(mus::View* view);
private:
- typedef std::map<mojo::ViewTreeConnection*,
- PerConnectionState*> ConnectionToStateMap;
+ typedef std::map<mus::ViewTreeConnection*, PerConnectionState*>
+ ConnectionToStateMap;
friend class base::RefCounted<PerConnectionState>;
- PerConnectionState(mojo::Shell* shell, mojo::ViewTreeConnection* connection);
+ PerConnectionState(mojo::Shell* shell, mus::ViewTreeConnection* connection);
~PerConnectionState();
void Init();
@@ -61,7 +61,7 @@ class SurfaceBinding::PerConnectionState
base::ThreadLocalPointer<ConnectionToStateMap>>::Leaky view_states;
mojo::Shell* shell_;
- mojo::ViewTreeConnection* connection_;
+ mus::ViewTreeConnection* connection_;
// Set of state needed to create an OutputSurface.
mojo::GpuPtr gpu_;
@@ -77,7 +77,7 @@ base::LazyInstance<base::ThreadLocalPointer<
// static
SurfaceBinding::PerConnectionState* SurfaceBinding::PerConnectionState::Get(
mojo::Shell* shell,
- mojo::ViewTreeConnection* connection) {
+ mus::ViewTreeConnection* connection) {
ConnectionToStateMap* view_map = view_states.Pointer()->Get();
if (!view_map) {
view_map = new ConnectionToStateMap;
@@ -91,7 +91,7 @@ SurfaceBinding::PerConnectionState* SurfaceBinding::PerConnectionState::Get(
}
scoped_ptr<cc::OutputSurface>
-SurfaceBinding::PerConnectionState::CreateOutputSurface(mojo::View* view) {
+SurfaceBinding::PerConnectionState::CreateOutputSurface(mus::View* view) {
// TODO(sky): figure out lifetime here. Do I need to worry about the return
// value outliving this?
mojo::CommandBufferPtr cb;
@@ -105,9 +105,8 @@ SurfaceBinding::PerConnectionState::CreateOutputSurface(mojo::View* view) {
SurfaceBinding::PerConnectionState::PerConnectionState(
mojo::Shell* shell,
- mojo::ViewTreeConnection* connection)
- : shell_(shell) {
-}
+ mus::ViewTreeConnection* connection)
+ : shell_(shell) {}
SurfaceBinding::PerConnectionState::~PerConnectionState() {
ConnectionToStateMap* view_map = view_states.Pointer()->Get();
@@ -132,10 +131,8 @@ void SurfaceBinding::PerConnectionState::Init() {
// SurfaceBinding --------------------------------------------------------------
-SurfaceBinding::SurfaceBinding(mojo::Shell* shell, mojo::View* view)
- : view_(view),
- state_(PerConnectionState::Get(shell, view->connection())) {
-}
+SurfaceBinding::SurfaceBinding(mojo::Shell* shell, mus::View* view)
+ : view_(view), state_(PerConnectionState::Get(shell, view->connection())) {}
SurfaceBinding::~SurfaceBinding() {
}
« no previous file with comments | « mandoline/ui/aura/surface_binding.h ('k') | mandoline/ui/aura/surface_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698