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

Side by Side Diff: base/threading/thread_restrictions.h

Issue 2941933002: viz: Convert a sync api in ServerGpuMemoryBufferManager into async. (Closed)
Patch Set: fix test build on windows Created 3 years, 6 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
« no previous file with comments | « no previous file | components/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_ 5 #ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_
6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_ 6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 namespace ui { 83 namespace ui {
84 class WindowResizeHelperMac; 84 class WindowResizeHelperMac;
85 } 85 }
86 86
87 namespace views { 87 namespace views {
88 class ScreenMus; 88 class ScreenMus;
89 } 89 }
90 90
91 namespace viz {
92 class ServerGpuMemoryBufferManager;
93 }
94
91 namespace base { 95 namespace base {
92 96
93 namespace android { 97 namespace android {
94 class JavaHandlerThread; 98 class JavaHandlerThread;
95 } 99 }
96 100
97 namespace internal { 101 namespace internal {
98 class TaskTracker; 102 class TaskTracker;
99 } 103 }
100 104
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 friend class disk_cache::InFlightIO; // http://crbug.com/74623 235 friend class disk_cache::InFlightIO; // http://crbug.com/74623
232 friend class gpu::GpuChannelHost; // http://crbug.com/125264 236 friend class gpu::GpuChannelHost; // http://crbug.com/125264
233 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 237 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097
234 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 238 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097
235 friend class ::BrowserProcessImpl; // http://crbug.com/125207 239 friend class ::BrowserProcessImpl; // http://crbug.com/125207
236 friend class ::NativeBackendKWallet; // http://crbug.com/125331 240 friend class ::NativeBackendKWallet; // http://crbug.com/125331
237 #if !defined(OFFICIAL_BUILD) 241 #if !defined(OFFICIAL_BUILD)
238 friend class content::SoftwareOutputDeviceMus; // Interim non-production code 242 friend class content::SoftwareOutputDeviceMus; // Interim non-production code
239 #endif 243 #endif
240 friend class views::ScreenMus; 244 friend class views::ScreenMus;
245 friend class viz::ServerGpuMemoryBufferManager;
241 // END USAGE THAT NEEDS TO BE FIXED. 246 // END USAGE THAT NEEDS TO BE FIXED.
242 247
243 #if DCHECK_IS_ON() 248 #if DCHECK_IS_ON()
244 static bool SetWaitAllowed(bool allowed); 249 static bool SetWaitAllowed(bool allowed);
245 #else 250 #else
246 static bool SetWaitAllowed(bool allowed) { return true; } 251 static bool SetWaitAllowed(bool allowed) { return true; }
247 #endif 252 #endif
248 253
249 // Constructing a ScopedAllowWait temporarily allows waiting on the current 254 // Constructing a ScopedAllowWait temporarily allows waiting on the current
250 // thread. Doing this is almost always incorrect, which is why we limit who 255 // thread. Doing this is almost always incorrect, which is why we limit who
(...skipping 10 matching lines...) Expand all
261 266
262 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 267 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
263 }; 268 };
264 269
265 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 270 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
266 }; 271 };
267 272
268 } // namespace base 273 } // namespace base
269 274
270 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 275 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698