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

Side by Side Diff: cc/output/copy_output_request.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « cc/output/context_provider.h ('k') | cc/output/copy_output_result.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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"
11 #include "cc/resources/single_release_callback.h" 10 #include "cc/resources/single_release_callback.h"
12 #include "cc/resources/texture_mailbox.h" 11 #include "cc/resources/texture_mailbox.h"
13 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
14 13
15 class SkBitmap; 14 class SkBitmap;
16 15
17 namespace cc { 16 namespace cc {
18 class CopyOutputResult; 17 class CopyOutputResult;
19 18
20 class CC_EXPORT CopyOutputRequest { 19 class CopyOutputRequest {
21 public: 20 public:
22 typedef base::Callback<void(scoped_ptr<CopyOutputResult> result)> 21 typedef base::Callback<void(scoped_ptr<CopyOutputResult> result)>
23 CopyOutputRequestCallback; 22 CopyOutputRequestCallback;
24 23
25 static scoped_ptr<CopyOutputRequest> CreateEmptyRequest() { 24 static scoped_ptr<CopyOutputRequest> CreateEmptyRequest() {
26 return make_scoped_ptr(new CopyOutputRequest); 25 return make_scoped_ptr(new CopyOutputRequest);
27 } 26 }
28 static scoped_ptr<CopyOutputRequest> CreateRequest( 27 static scoped_ptr<CopyOutputRequest> CreateRequest(
29 const CopyOutputRequestCallback& result_callback) { 28 const CopyOutputRequestCallback& result_callback) {
30 return make_scoped_ptr(new CopyOutputRequest(false, result_callback)); 29 return make_scoped_ptr(new CopyOutputRequest(false, result_callback));
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool has_area_; 76 bool has_area_;
78 bool has_texture_mailbox_; 77 bool has_texture_mailbox_;
79 gfx::Rect area_; 78 gfx::Rect area_;
80 TextureMailbox texture_mailbox_; 79 TextureMailbox texture_mailbox_;
81 CopyOutputRequestCallback result_callback_; 80 CopyOutputRequestCallback result_callback_;
82 }; 81 };
83 82
84 } // namespace cc 83 } // namespace cc
85 84
86 #endif // CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ 85 #endif // CC_OUTPUT_COPY_OUTPUT_REQUEST_H_
OLDNEW
« no previous file with comments | « cc/output/context_provider.h ('k') | cc/output/copy_output_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698