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

Unified Diff: ui/compositor/layer.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 | « ui/aura/mus/window_port_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 5995786d48c2ee16cab1c2ad449dd5ae5cb0e151..977a0ffbae085f562db233902317b40bf4a06153 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -181,8 +181,7 @@ std::unique_ptr<Layer> Layer::Clone() const {
clone->SetAlphaShape(base::MakeUnique<SkRegion>(*alpha_shape_));
// cc::Layer state.
- if (surface_layer_ &&
- surface_layer_->primary_surface_info().id().is_valid()) {
+ if (surface_layer_ && surface_layer_->primary_surface_info().is_valid()) {
clone->SetShowPrimarySurface(surface_layer_->primary_surface_info(),
surface_layer_->surface_reference_factory());
} else if (type_ == LAYER_SOLID_COLOR) {
« no previous file with comments | « ui/aura/mus/window_port_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698