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

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

Issue 142863008: Revert of [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/output/copy_output_request.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 #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/logging.h" 9 #include "base/logging.h"
10 #include "cc/output/copy_output_result.h" 10 #include "cc/output/copy_output_result.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void CopyOutputRequest::SendEmptyResult() { 49 void CopyOutputRequest::SendEmptyResult() {
50 SendResult(CopyOutputResult::CreateEmptyResult().Pass()); 50 SendResult(CopyOutputResult::CreateEmptyResult().Pass());
51 } 51 }
52 52
53 void CopyOutputRequest::SendBitmapResult(scoped_ptr<SkBitmap> bitmap) { 53 void CopyOutputRequest::SendBitmapResult(scoped_ptr<SkBitmap> bitmap) {
54 SendResult(CopyOutputResult::CreateBitmapResult(bitmap.Pass()).Pass()); 54 SendResult(CopyOutputResult::CreateBitmapResult(bitmap.Pass()).Pass());
55 } 55 }
56 56
57 void CopyOutputRequest::SendTextureResult( 57 void CopyOutputRequest::SendTextureResult(
58 const gfx::Size& size, 58 gfx::Size size,
59 const TextureMailbox& texture_mailbox, 59 const TextureMailbox& texture_mailbox,
60 scoped_ptr<SingleReleaseCallback> release_callback) { 60 scoped_ptr<SingleReleaseCallback> release_callback) {
61 DCHECK(texture_mailbox.IsTexture()); 61 DCHECK(texture_mailbox.IsTexture());
62 SendResult(CopyOutputResult::CreateTextureResult( 62 SendResult(CopyOutputResult::CreateTextureResult(
63 size, texture_mailbox, release_callback.Pass())); 63 size, texture_mailbox, release_callback.Pass()));
64 } 64 }
65 65
66 void CopyOutputRequest::SetTextureMailbox( 66 void CopyOutputRequest::SetTextureMailbox(
67 const TextureMailbox& texture_mailbox) { 67 const TextureMailbox& texture_mailbox) {
68 DCHECK(!force_bitmap_result_); 68 DCHECK(!force_bitmap_result_);
69 DCHECK(texture_mailbox.IsTexture()); 69 DCHECK(texture_mailbox.IsTexture());
70 has_texture_mailbox_ = true; 70 has_texture_mailbox_ = true;
71 texture_mailbox_ = texture_mailbox; 71 texture_mailbox_ = texture_mailbox;
72 } 72 }
73 73
74 } // namespace cc 74 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/copy_output_request.h ('k') | cc/output/copy_output_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698