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 #ifndef CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ | 5 #ifndef CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ |
6 #define CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ | 6 #define CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 #include "cc/resources/single_release_callback.h" |
11 #include "cc/resources/texture_mailbox.h" | 12 #include "cc/resources/texture_mailbox.h" |
12 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
13 | 14 |
14 class SkBitmap; | 15 class SkBitmap; |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
17 class CopyOutputResult; | 18 class CopyOutputResult; |
18 class SingleReleaseCallback; | |
19 | 19 |
20 class CC_EXPORT CopyOutputRequest { | 20 class CC_EXPORT CopyOutputRequest { |
21 public: | 21 public: |
22 typedef base::Callback<void(scoped_ptr<CopyOutputResult> result)> | 22 typedef base::Callback<void(scoped_ptr<CopyOutputResult> result)> |
23 CopyOutputRequestCallback; | 23 CopyOutputRequestCallback; |
24 | 24 |
25 static scoped_ptr<CopyOutputRequest> CreateEmptyRequest() { | 25 static scoped_ptr<CopyOutputRequest> CreateEmptyRequest() { |
26 return make_scoped_ptr(new CopyOutputRequest); | 26 return make_scoped_ptr(new CopyOutputRequest); |
27 } | 27 } |
28 static scoped_ptr<CopyOutputRequest> CreateRequest( | 28 static scoped_ptr<CopyOutputRequest> CreateRequest( |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool has_area_; | 77 bool has_area_; |
78 bool has_texture_mailbox_; | 78 bool has_texture_mailbox_; |
79 gfx::Rect area_; | 79 gfx::Rect area_; |
80 TextureMailbox texture_mailbox_; | 80 TextureMailbox texture_mailbox_; |
81 CopyOutputRequestCallback result_callback_; | 81 CopyOutputRequestCallback result_callback_; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace cc | 84 } // namespace cc |
85 | 85 |
86 #endif // CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ | 86 #endif // CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ |
OLD | NEW |