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

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

Issue 147603006: [#7] Resubmitted - Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resubmit 145313006 Created 6 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
« no previous file with comments | « cc/layers/ui_resource_layer_impl_unittest.cc ('k') | cc/output/copy_output_request.cc » ('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" 10 #include "cc/base/cc_export.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // By default copy requests create a new TextureMailbox to return contents 56 // By default copy requests create a new TextureMailbox to return contents
57 // in. This allows a client to provide a TextureMailbox, and the compositor 57 // in. This allows a client to provide a TextureMailbox, and the compositor
58 // will place the result inside the TextureMailbox. 58 // will place the result inside the TextureMailbox.
59 void SetTextureMailbox(const TextureMailbox& texture_mailbox); 59 void SetTextureMailbox(const TextureMailbox& texture_mailbox);
60 bool has_texture_mailbox() const { return has_texture_mailbox_; } 60 bool has_texture_mailbox() const { return has_texture_mailbox_; }
61 const TextureMailbox& texture_mailbox() const { return texture_mailbox_; } 61 const TextureMailbox& texture_mailbox() const { return texture_mailbox_; }
62 62
63 void SendEmptyResult(); 63 void SendEmptyResult();
64 void SendBitmapResult(scoped_ptr<SkBitmap> bitmap); 64 void SendBitmapResult(scoped_ptr<SkBitmap> bitmap);
65 void SendTextureResult(gfx::Size size, 65 void SendTextureResult(const gfx::Size& size,
66 const TextureMailbox& texture_mailbox, 66 const TextureMailbox& texture_mailbox,
67 scoped_ptr<SingleReleaseCallback> release_callback); 67 scoped_ptr<SingleReleaseCallback> release_callback);
68 68
69 void SendResult(scoped_ptr<CopyOutputResult> result); 69 void SendResult(scoped_ptr<CopyOutputResult> result);
70 70
71 private: 71 private:
72 CopyOutputRequest(); 72 CopyOutputRequest();
73 CopyOutputRequest(bool force_bitmap_result, 73 CopyOutputRequest(bool force_bitmap_result,
74 const CopyOutputRequestCallback& result_callback); 74 const CopyOutputRequestCallback& result_callback);
75 75
76 bool force_bitmap_result_; 76 bool force_bitmap_result_;
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_
OLDNEW
« no previous file with comments | « cc/layers/ui_resource_layer_impl_unittest.cc ('k') | cc/output/copy_output_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698