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

Side by Side Diff: cc/output/copy_output_result.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/copy_output_request.h ('k') | cc/output/delegated_frame_data.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_RESULT_H_ 5 #ifndef CC_OUTPUT_COPY_OUTPUT_RESULT_H_
6 #define CC_OUTPUT_COPY_OUTPUT_RESULT_H_ 6 #define CC_OUTPUT_COPY_OUTPUT_RESULT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h"
10 #include "cc/resources/single_release_callback.h" 9 #include "cc/resources/single_release_callback.h"
11 #include "cc/resources/texture_mailbox.h" 10 #include "cc/resources/texture_mailbox.h"
12 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
13 12
14 class SkBitmap; 13 class SkBitmap;
15 14
16 namespace cc { 15 namespace cc {
17 class TextureMailbox; 16 class TextureMailbox;
18 17
19 class CC_EXPORT CopyOutputResult { 18 class CopyOutputResult {
20 public: 19 public:
21 static scoped_ptr<CopyOutputResult> CreateEmptyResult() { 20 static scoped_ptr<CopyOutputResult> CreateEmptyResult() {
22 return make_scoped_ptr(new CopyOutputResult); 21 return make_scoped_ptr(new CopyOutputResult);
23 } 22 }
24 static scoped_ptr<CopyOutputResult> CreateBitmapResult( 23 static scoped_ptr<CopyOutputResult> CreateBitmapResult(
25 scoped_ptr<SkBitmap> bitmap) { 24 scoped_ptr<SkBitmap> bitmap) {
26 return make_scoped_ptr(new CopyOutputResult(bitmap.Pass())); 25 return make_scoped_ptr(new CopyOutputResult(bitmap.Pass()));
27 } 26 }
28 static scoped_ptr<CopyOutputResult> CreateTextureResult( 27 static scoped_ptr<CopyOutputResult> CreateTextureResult(
29 const gfx::Size& size, 28 const gfx::Size& size,
(...skipping 23 matching lines...) Expand all
53 52
54 gfx::Size size_; 53 gfx::Size size_;
55 scoped_ptr<SkBitmap> bitmap_; 54 scoped_ptr<SkBitmap> bitmap_;
56 TextureMailbox texture_mailbox_; 55 TextureMailbox texture_mailbox_;
57 scoped_ptr<SingleReleaseCallback> release_callback_; 56 scoped_ptr<SingleReleaseCallback> release_callback_;
58 }; 57 };
59 58
60 } // namespace cc 59 } // namespace cc
61 60
62 #endif // CC_OUTPUT_COPY_OUTPUT_RESULT_H_ 61 #endif // CC_OUTPUT_COPY_OUTPUT_RESULT_H_
OLDNEW
« no previous file with comments | « cc/output/copy_output_request.h ('k') | cc/output/delegated_frame_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698