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

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

Issue 100023003: cc: Remove unused CopyOutputRequest::Equals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 gfx::Rect area() const { return area_; } 60 gfx::Rect area() const { return area_; }
61 61
62 void SendEmptyResult(); 62 void SendEmptyResult();
63 void SendBitmapResult(scoped_ptr<SkBitmap> bitmap); 63 void SendBitmapResult(scoped_ptr<SkBitmap> bitmap);
64 void SendTextureResult(gfx::Size size, 64 void SendTextureResult(gfx::Size size,
65 const TextureMailbox& texture_mailbox, 65 const TextureMailbox& texture_mailbox,
66 scoped_ptr<SingleReleaseCallback> release_callback); 66 scoped_ptr<SingleReleaseCallback> release_callback);
67 67
68 void SendResult(scoped_ptr<CopyOutputResult> result); 68 void SendResult(scoped_ptr<CopyOutputResult> result);
69 69
70 bool Equals(const CopyOutputRequest& other) const {
71 return result_callback_.Equals(other.result_callback_) &&
72 force_bitmap_result_ == other.force_bitmap_result_;
73 }
74
75 private: 70 private:
76 CopyOutputRequest(); 71 CopyOutputRequest();
77 explicit CopyOutputRequest(bool force_bitmap_result, 72 explicit CopyOutputRequest(bool force_bitmap_result,
78 const CopyOutputRequestCallback& result_callback); 73 const CopyOutputRequestCallback& result_callback);
79 74
80 bool force_bitmap_result_; 75 bool force_bitmap_result_;
81 bool has_area_; 76 bool has_area_;
82 gfx::Rect area_; 77 gfx::Rect area_;
83 CopyOutputRequestCallback result_callback_; 78 CopyOutputRequestCallback result_callback_;
84 }; 79 };
85 80
86 } // namespace cc 81 } // namespace cc
87 82
88 #endif // CC_OUTPUT_COPY_OUTPUT_REQUEST_H_ 83 #endif // CC_OUTPUT_COPY_OUTPUT_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698