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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2720503008: Add cc::SurfaceInfo::is_valid() (Closed)
Patch Set: Added Log() Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/surface_info.h ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index fa252c5a0969af8bf910bae02373c8d0c7777462..f068a9c33def7996ee9bf46db787f732f9b717e0 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1602,7 +1602,7 @@ CompositorFrameMetadata LayerTreeHostImpl::MakeCompositorFrameMetadata() const {
surface_layer_impl->primary_surface_info().id());
// We need to retain a reference to the fallback surface too so that it's
// guaranteed to be available when needed.
- if (surface_layer_impl->fallback_surface_info().id().is_valid()) {
+ if (surface_layer_impl->fallback_surface_info().is_valid()) {
metadata.referenced_surfaces.push_back(
surface_layer_impl->fallback_surface_info().id());
}
« no previous file with comments | « cc/surfaces/surface_info.h ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698