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

Unified Diff: cc/layers/layer.h

Issue 1155553006: Revert of cc: Fix size_t to int truncations in layers/ output/ playback/ quads/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/heads_up_display_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index a1234c1d404359bd3cf9678269176777e8d28cab..84e9c0f8ba69c65fa70ce676ed5cc1f6e61e0ae7 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -670,6 +670,9 @@
// This should only be called during BeginMainFrame since it does not
// trigger a Commit.
void SetHasRenderSurface(bool has_render_surface);
+
+ // Returns the index of the child or -1 if not found.
+ int IndexOfChild(const Layer* reference);
// This should only be called from RemoveFromParent().
void RemoveChildOrDependent(Layer* child);
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698