OLD | NEW |
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 CCScopedThreadProxy_h | 5 #ifndef CC_SCOPED_THREAD_PROXY_H_ |
6 #define CCScopedThreadProxy_h | 6 #define CC_SCOPED_THREAD_PROXY_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "cc/cc_export.h" | 10 #include "cc/cc_export.h" |
11 #include "cc/thread.h" | 11 #include "cc/thread.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
(...skipping 27 matching lines...) Expand all Loading... |
44 ~ScopedThreadProxy(); | 44 ~ScopedThreadProxy(); |
45 | 45 |
46 void runTaskIfNotShutdown(base::Closure cb); | 46 void runTaskIfNotShutdown(base::Closure cb); |
47 | 47 |
48 cc::Thread* m_targetThread; | 48 cc::Thread* m_targetThread; |
49 bool m_shutdown; // Only accessed on the target thread | 49 bool m_shutdown; // Only accessed on the target thread |
50 }; | 50 }; |
51 | 51 |
52 } // namespace cc | 52 } // namespace cc |
53 | 53 |
54 #endif | 54 #endif // CC_SCOPED_THREAD_PROXY_H_ |
OLD | NEW |