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

Unified Diff: ui/ozone/platform/drm/mus_thread_proxy.cc

Issue 2519283002: ozone-mus: Fix detecting displays on device in mustash. (Closed)
Patch Set: . Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/mus_thread_proxy.cc
diff --git a/ui/ozone/platform/drm/mus_thread_proxy.cc b/ui/ozone/platform/drm/mus_thread_proxy.cc
index c70850aea21525270c4bde41976abc6cd6bde1fd..299acbd6c113feb24ce06f32b0320df4a1669eb8 100644
--- a/ui/ozone/platform/drm/mus_thread_proxy.cc
+++ b/ui/ozone/platform/drm/mus_thread_proxy.cc
@@ -74,16 +74,24 @@ void MusThreadProxy::DispatchObserversFromDrmThread() {
void MusThreadProxy::RunObservers() {
DCHECK(on_window_server_thread_.CalledOnValidThread());
- for (GpuThreadObserver& observer : gpu_thread_observers_)
+ for (GpuThreadObserver& observer : gpu_thread_observers_) {
+ // TODO(rjkroege): This needs to be different when gpu process split
+ // happens.
+ observer.OnGpuProcessLaunched();
observer.OnGpuThreadReady();
+ }
}
void MusThreadProxy::AddGpuThreadObserver(GpuThreadObserver* observer) {
DCHECK(on_window_server_thread_.CalledOnValidThread());
gpu_thread_observers_.AddObserver(observer);
- if (IsConnected())
+ if (IsConnected()) {
+ // TODO(rjkroege): This needs to be different when gpu process split
+ // happens.
+ observer->OnGpuProcessLaunched();
observer->OnGpuThreadReady();
+ }
}
void MusThreadProxy::RemoveGpuThreadObserver(GpuThreadObserver* observer) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698