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

Side by Side Diff: cc/texture_mailbox.h

Issue 11888010: Cosmetic cleanup to texture_layer mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments Created 7 years, 11 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 | « cc/texture_layer_unittest.cc ('k') | cc/texture_mailbox.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « cc/texture_layer_unittest.cc ('k') | cc/texture_mailbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698