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

Side by Side Diff: webkit/compositor_bindings/CCThreadImpl.cpp

Issue 11145033: cc: Get rid of CC*.h temporary header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased - fixed the conflicts hopefuly Created 8 years, 2 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 | « webkit/compositor_bindings/CCThreadImpl.h ('k') | webkit/compositor_bindings/WebLayerImpl.cpp » ('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 #include "config.h" 5 #include "config.h"
6 #include "CCThreadImpl.h" 6 #include "CCThreadImpl.h"
7 7
8 #include "cc/completion_event.h" 8 #include "cc/completion_event.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebThread.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebThread.h"
11 #include <wtf/OwnPtr.h>
11 12
12 using cc::CCThread; 13 using cc::CCThread;
13 using cc::CCCompletionEvent; 14 using cc::CCCompletionEvent;
14 15
15 namespace WebKit { 16 namespace WebKit {
16 17
17 // Task that, when runs, places the current thread ID into the provided 18 // Task that, when runs, places the current thread ID into the provided
18 // pointer and signals a completion event. 19 // pointer and signals a completion event.
19 // 20 //
20 // Does not provide a PassOwnPtr<GetThreadIDTask>::create method because 21 // Does not provide a PassOwnPtr<GetThreadIDTask>::create method because
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 94 }
94 95
95 // Get the threadId for the newly-created thread by running a task 96 // Get the threadId for the newly-created thread by running a task
96 // on that thread, blocking on the result. 97 // on that thread, blocking on the result.
97 CCCompletionEvent completion; 98 CCCompletionEvent completion;
98 m_thread->postTask(new GetThreadIDTask(&m_threadID, &completion)); 99 m_thread->postTask(new GetThreadIDTask(&m_threadID, &completion));
99 completion.wait(); 100 completion.wait();
100 } 101 }
101 102
102 } // namespace WebKit 103 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/CCThreadImpl.h ('k') | webkit/compositor_bindings/WebLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698