| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "cc/texture_mailbox.h" | 6 #include "cc/resources/texture_mailbox.h" |
| 7 | 7 |
| 8 namespace cc { | 8 namespace cc { |
| 9 | 9 |
| 10 TextureMailbox::TextureMailbox() | 10 TextureMailbox::TextureMailbox() |
| 11 : sync_point_(0) { | 11 : sync_point_(0) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 TextureMailbox::TextureMailbox( | 14 TextureMailbox::TextureMailbox( |
| 15 const std::string& mailbox_name, | 15 const std::string& mailbox_name, |
| 16 const ReleaseCallback& mailbox_callback) | 16 const ReleaseCallback& mailbox_callback) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void TextureMailbox::RunReleaseCallback(unsigned sync_point) const { | 60 void TextureMailbox::RunReleaseCallback(unsigned sync_point) const { |
| 61 if (!callback_.is_null()) | 61 if (!callback_.is_null()) |
| 62 callback_.Run(sync_point); | 62 callback_.Run(sync_point); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void TextureMailbox::SetName(const gpu::Mailbox& other) { | 65 void TextureMailbox::SetName(const gpu::Mailbox& other) { |
| 66 name_.SetName(other.name); | 66 name_.SetName(other.name); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace cc | 69 } // namespace cc |
| OLD | NEW |