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

Side by Side Diff: cc/CCCompletionEvent.h

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCCheckerboardDrawQuad.cpp ('k') | cc/CCDamageTracker.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CCCompletionEvent_h 5 #ifndef CCCompletionEvent_h
6 #define CCCompletionEvent_h 6 #define CCCompletionEvent_h
7 7
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 9
10 namespace WebCore { 10 namespace cc {
11 11
12 // Used for making blocking calls from one thread to another. Use only when 12 // Used for making blocking calls from one thread to another. Use only when
13 // absolutely certain that doing-so will not lead to a deadlock. 13 // absolutely certain that doing-so will not lead to a deadlock.
14 // 14 //
15 // It is safe to destroy this object as soon as wait() returns. 15 // It is safe to destroy this object as soon as wait() returns.
16 class CCCompletionEvent { 16 class CCCompletionEvent {
17 public: 17 public:
18 CCCompletionEvent() 18 CCCompletionEvent()
19 : m_event(false /* manual_reset */, false /* initially_signaled */) 19 : m_event(false /* manual_reset */, false /* initially_signaled */)
20 { 20 {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #ifndef NDEBUG 53 #ifndef NDEBUG
54 // Used to assert that wait() and signal() are each called exactly once. 54 // Used to assert that wait() and signal() are each called exactly once.
55 bool m_waited; 55 bool m_waited;
56 bool m_signaled; 56 bool m_signaled;
57 #endif 57 #endif
58 }; 58 };
59 59
60 } 60 }
61 61
62 #endif 62 #endif
OLDNEW
« no previous file with comments | « cc/CCCheckerboardDrawQuad.cpp ('k') | cc/CCDamageTracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698