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

Unified Diff: cc/layers/surface_layer_unittest.cc

Issue 2102123002: Make Satisfy/Require callbacks pass Surface id and sequence by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/surface_layer.h ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/surface_layer_unittest.cc
diff --git a/cc/layers/surface_layer_unittest.cc b/cc/layers/surface_layer_unittest.cc
index f0c85fd5913e0e81ab8f006454c4215042bd6f25..8ff9ad970c5f0e0d8b2e7fffe77a3a9a69206a51 100644
--- a/cc/layers/surface_layer_unittest.cc
+++ b/cc/layers/surface_layer_unittest.cc
@@ -51,14 +51,14 @@ class SurfaceLayerTest : public testing::Test {
std::unique_ptr<FakeLayerTreeHost> layer_tree_host_;
};
-void SatisfyCallback(SurfaceSequence* out, SurfaceSequence in) {
+void SatisfyCallback(SurfaceSequence* out, const SurfaceSequence& in) {
*out = in;
}
void RequireCallback(SurfaceId* out_id,
std::set<SurfaceSequence>* out,
- SurfaceId in_id,
- SurfaceSequence in) {
+ const SurfaceId& in_id,
+ const SurfaceSequence& in) {
*out_id = in_id;
out->insert(in);
}
« no previous file with comments | « cc/layers/surface_layer.h ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698