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 "cc/output/copy_output_result.h" | 5 #include "cc/output/copy_output_result.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "cc/resources/texture_mailbox.h" | 8 #include "cc/resources/texture_mailbox.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 void CopyOutputResult::TakeTexture( | 38 void CopyOutputResult::TakeTexture( |
39 TextureMailbox* texture_mailbox, | 39 TextureMailbox* texture_mailbox, |
40 std::unique_ptr<SingleReleaseCallback>* release_callback) { | 40 std::unique_ptr<SingleReleaseCallback>* release_callback) { |
41 *texture_mailbox = texture_mailbox_; | 41 *texture_mailbox = texture_mailbox_; |
42 *release_callback = std::move(release_callback_); | 42 *release_callback = std::move(release_callback_); |
43 | 43 |
44 texture_mailbox_ = TextureMailbox(); | 44 texture_mailbox_ = TextureMailbox(); |
45 } | 45 } |
46 | 46 |
| 47 std::unique_ptr<SingleReleaseCallback> CopyOutputResult::TakeReleaseCallback() { |
| 48 return std::move(release_callback_); |
| 49 } |
| 50 |
47 } // namespace cc | 51 } // namespace cc |
OLD | NEW |