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_request.h" | 5 #include "cc/output/copy_output_request.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "cc/output/copy_output_result.h" | 11 #include "cc/output/copy_output_result.h" |
12 #include "cc/resources/single_release_callback.h" | |
13 #include "cc/resources/texture_mailbox.h" | 12 #include "cc/resources/texture_mailbox.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
15 | 14 |
16 namespace cc { | 15 namespace cc { |
17 | 16 |
18 // static | 17 // static |
19 scoped_ptr<CopyOutputRequest> CopyOutputRequest::CreateRelayRequest( | 18 scoped_ptr<CopyOutputRequest> CopyOutputRequest::CreateRelayRequest( |
20 const CopyOutputRequest& original_request, | 19 const CopyOutputRequest& original_request, |
21 const CopyOutputRequestCallback& result_callback) { | 20 const CopyOutputRequestCallback& result_callback) { |
22 scoped_ptr<CopyOutputRequest> relay = CreateRequest(result_callback); | 21 scoped_ptr<CopyOutputRequest> relay = CreateRequest(result_callback); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 69 |
71 void CopyOutputRequest::SetTextureMailbox( | 70 void CopyOutputRequest::SetTextureMailbox( |
72 const TextureMailbox& texture_mailbox) { | 71 const TextureMailbox& texture_mailbox) { |
73 DCHECK(!force_bitmap_result_); | 72 DCHECK(!force_bitmap_result_); |
74 DCHECK(texture_mailbox.IsTexture()); | 73 DCHECK(texture_mailbox.IsTexture()); |
75 has_texture_mailbox_ = true; | 74 has_texture_mailbox_ = true; |
76 texture_mailbox_ = texture_mailbox; | 75 texture_mailbox_ = texture_mailbox; |
77 } | 76 } |
78 | 77 |
79 } // namespace cc | 78 } // namespace cc |
OLD | NEW |