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

Side by Side Diff: ui/ozone/platform/dri/dri_window_delegate_manager.cc

Issue 883783002: [Ozone-DRI] Assume window IPC arrives before surface IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/ozone/platform/dri/dri_window_delegate_manager.h" 5 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h"
6 6
7 #include "ui/ozone/platform/dri/dri_window_delegate.h" 7 #include "ui/ozone/platform/dri/dri_window_delegate.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 23 matching lines...) Expand all
34 DriWindowDelegate* DriWindowDelegateManager::GetWindowDelegate( 34 DriWindowDelegate* DriWindowDelegateManager::GetWindowDelegate(
35 gfx::AcceleratedWidget widget) { 35 gfx::AcceleratedWidget widget) {
36 WidgetToDelegateMap::iterator it = delegate_map_.find(widget); 36 WidgetToDelegateMap::iterator it = delegate_map_.find(widget);
37 if (it != delegate_map_.end()) 37 if (it != delegate_map_.end())
38 return it->second; 38 return it->second;
39 39
40 NOTREACHED() << "Attempting to get non-existing delegate for " << widget; 40 NOTREACHED() << "Attempting to get non-existing delegate for " << widget;
41 return NULL; 41 return NULL;
42 } 42 }
43 43
44 bool DriWindowDelegateManager::HasWindowDelegate(
45 gfx::AcceleratedWidget widget) {
46 return delegate_map_.find(widget) != delegate_map_.end();
47 }
48
49 } // namespace ui 44 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_manager.h ('k') | ui/ozone/platform/dri/gbm_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698