OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_TEXTURE_MAILBOX_H_ | |
6 #define CC_TEXTURE_MAILBOX_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/callback.h" | |
12 #include "cc/cc_export.h" | |
13 | |
14 namespace cc { | |
15 | |
16 class CC_EXPORT TextureMailbox { | |
17 public: | |
18 typedef base::Callback<void(unsigned)> ReleaseCallback; | |
19 TextureMailbox(); | |
20 TextureMailbox(const std::string& name, | |
21 const ReleaseCallback& callback); | |
22 ~TextureMailbox(); | |
23 | |
24 bool Equals(const TextureMailbox&) const; | |
25 const int8* Data() const; | |
danakj
2013/01/16 22:22:13
I'd name this data() and move the body into the he
| |
26 bool IsEmpty() const; | |
27 void RunReleaseCallback(unsigned sync_point) const; | |
28 | |
29 std::string name_; | |
danakj
2013/01/16 22:22:13
If these are meant to be public then drop the trai
| |
30 ReleaseCallback callback_; | |
31 }; | |
32 | |
33 } // namespace cc | |
34 | |
35 #endif // CC_TEXTURE_MAILBOX_H_ | |
OLD | NEW |