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

Unified Diff: cc/layers/surface_layer.h

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 | « no previous file | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/surface_layer.h
diff --git a/cc/layers/surface_layer.h b/cc/layers/surface_layer.h
index 583625fe92fae6f5b8434464af27d25e975277c6..1799a3a52ada65c0428649b5090e852da0b8073b 100644
--- a/cc/layers/surface_layer.h
+++ b/cc/layers/surface_layer.h
@@ -21,11 +21,12 @@ class CC_EXPORT SurfaceLayer : public Layer {
// This callback is run when a SurfaceSequence needs to be satisfied, but
// the parent compositor is unable to. It can be called on either the main
// or impl threads.
- using SatisfyCallback = base::Callback<void(SurfaceSequence)>;
+ using SatisfyCallback = base::Callback<void(const SurfaceSequence&)>;
// This callback is run to require that a specific SurfaceSequence is
// received before a SurfaceId is destroyed.
- using RequireCallback = base::Callback<void(SurfaceId, SurfaceSequence)>;
+ using RequireCallback =
+ base::Callback<void(const SurfaceId&, const SurfaceSequence&)>;
static scoped_refptr<SurfaceLayer> Create(
const SatisfyCallback& satisfy_callback,
« no previous file with comments | « no previous file | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698