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

Unified Diff: ash/display/mirror_window_controller.cc

Issue 1108713004: OffscreenBrowserCompositorOutputSurface for Unified Desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac build Created 5 years, 8 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 | « no previous file | ash/host/ash_window_tree_host_unified.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mirror_window_controller.cc
diff --git a/ash/display/mirror_window_controller.cc b/ash/display/mirror_window_controller.cc
index 3e7df2d79b23d1735fe7ca50db75e368c0c3cd9f..2b4c66b8c00a6c29eaf8c88aed66c91057cb28df 100644
--- a/ash/display/mirror_window_controller.cc
+++ b/ash/display/mirror_window_controller.cc
@@ -145,8 +145,7 @@ void MirrorWindowController::UpdateWindow(
mirror_window->SetBounds(host->window()->bounds());
mirror_window->Show();
if (reflector_) {
- // TODO(oshima): Enable this once reflector change is landed.
- // reflector_->AddMirroringLayer(mirror_window->layer());
+ reflector_->AddMirroringLayer(mirror_window->layer());
} else {
reflector_ =
aura::Env::GetInstance()->context_factory()->CreateReflector(
@@ -268,8 +267,7 @@ void MirrorWindowController::CloseAndDeleteHost(MirroringHostInfo* host_info) {
host->RemoveObserver(Shell::GetInstance()->display_controller());
host->RemoveObserver(this);
host_info->ash_host->PrepareForShutdown();
- // TODO(oshima): Enable this once reflector change is landed.
- // reflector_->RemovedMirroringLayer(mirror_window->layer());
+ reflector_->RemoveMirroringLayer(host_info->mirror_window->layer());
delete host_info;
}
« no previous file with comments | « no previous file | ash/host/ash_window_tree_host_unified.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698