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

Side by Side Diff: cc/output/copy_output_result.cc

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: c Created 3 years, 10 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698