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

Side by Side Diff: ash/host/ash_window_tree_host_unified.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, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/host/ash_window_tree_host_unified.h" 5 #include "ash/host/ash_window_tree_host_unified.h"
6 #include "ash/host/root_window_transformer.h" 6 #include "ash/host/root_window_transformer.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/aura/window_event_dispatcher.h" 9 #include "ui/aura/window_event_dispatcher.h"
10 #include "ui/aura/window_targeter.h" 10 #include "ui/aura/window_targeter.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 aura::WindowTreeHost* AshWindowTreeHostUnified::AsWindowTreeHost() { 98 aura::WindowTreeHost* AshWindowTreeHostUnified::AsWindowTreeHost() {
99 return this; 99 return this;
100 } 100 }
101 101
102 ui::EventSource* AshWindowTreeHostUnified::GetEventSource() { 102 ui::EventSource* AshWindowTreeHostUnified::GetEventSource() {
103 return this; 103 return this;
104 } 104 }
105 105
106 gfx::AcceleratedWidget AshWindowTreeHostUnified::GetAcceleratedWidget() { 106 gfx::AcceleratedWidget AshWindowTreeHostUnified::GetAcceleratedWidget() {
107 // TODO(oshima): Enable offscreen compositor.
108 return gfx::kNullAcceleratedWidget; 107 return gfx::kNullAcceleratedWidget;
109 } 108 }
110 109
111 void AshWindowTreeHostUnified::Show() { 110 void AshWindowTreeHostUnified::Show() {
112 } 111 }
113 112
114 void AshWindowTreeHostUnified::Hide() { 113 void AshWindowTreeHostUnified::Hide() {
115 } 114 }
116 115
117 gfx::Rect AshWindowTreeHostUnified::GetBounds() const { 116 gfx::Rect AshWindowTreeHostUnified::GetBounds() const {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 DCHECK(iter != mirroring_hosts_.end()); 158 DCHECK(iter != mirroring_hosts_.end());
160 window->RemoveObserver(this); 159 window->RemoveObserver(this);
161 mirroring_hosts_.erase(iter); 160 mirroring_hosts_.erase(iter);
162 } 161 }
163 162
164 ui::EventProcessor* AshWindowTreeHostUnified::GetEventProcessor() { 163 ui::EventProcessor* AshWindowTreeHostUnified::GetEventProcessor() {
165 return dispatcher(); 164 return dispatcher();
166 } 165 }
167 166
168 } // namespace ash 167 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698