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

Unified Diff: mojo/services/view_manager/connection_manager.cc

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 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 | « mojo/services/view_manager/connection_manager.h ('k') | mojo/services/view_manager/context_factory_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/connection_manager.cc
diff --git a/mojo/services/view_manager/connection_manager.cc b/mojo/services/view_manager/connection_manager.cc
index 3d390b35a4033455d7a6e3a71074cb8373a958bd..f9cde387fe29ed79f3eb61d0c31afa9ef791ab17 100644
--- a/mojo/services/view_manager/connection_manager.cc
+++ b/mojo/services/view_manager/connection_manager.cc
@@ -9,7 +9,6 @@
#include "mojo/public/interfaces/application/service_provider.mojom.h"
#include "mojo/services/public/cpp/input_events/input_events_type_converters.h"
#include "mojo/services/view_manager/view_manager_service_impl.h"
-#include "ui/aura/env.h"
namespace mojo {
namespace service {
@@ -28,27 +27,17 @@ ConnectionManager::ScopedChange::~ScopedChange() {
connection_manager_->FinishChange();
}
-ConnectionManager::Context::Context() {
- // Pass in false as native viewport creates the PlatformEventSource.
- aura::Env::CreateInstance(false);
-}
-
-ConnectionManager::Context::~Context() {
- aura::Env::DeleteInstance();
-}
-
ConnectionManager::ConnectionManager(
ApplicationConnection* app_connection,
- DisplayManagerDelegate* display_manager_delegate,
const Callback<void()>& native_viewport_closed_callback)
: app_connection_(app_connection),
next_connection_id_(1),
display_manager_(app_connection,
this,
- display_manager_delegate,
native_viewport_closed_callback),
root_(new ServerView(this, RootViewId())),
current_change_(NULL) {
+ root_->SetBounds(gfx::Rect(800, 600));
}
ConnectionManager::~ConnectionManager() {
@@ -277,7 +266,7 @@ void ConnectionManager::OnViewBoundsChanged(const ServerView* view,
display_manager_.SchedulePaint(view->parent(), new_bounds);
}
-void ConnectionManager::OnViewBitmapChanged(const ServerView* view) {
+void ConnectionManager::OnViewSurfaceIdChanged(const ServerView* view) {
display_manager_.SchedulePaint(view, gfx::Rect(view->bounds().size()));
}
« no previous file with comments | « mojo/services/view_manager/connection_manager.h ('k') | mojo/services/view_manager/context_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698