Chromium Code Reviews| Index: ui/compositor/layer.cc |
| diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc |
| index c235821bf6ae9a4e778f73442b8a7988169fae50..87edbdf6226dfe422f0f07fbf468d0a516177f9c 100644 |
| --- a/ui/compositor/layer.cc |
| +++ b/ui/compositor/layer.cc |
| @@ -675,6 +675,21 @@ void Layer::SetShowPrimarySurface( |
| mirror->dest()->SetShowPrimarySurface(surface_info, ref_factory); |
| } |
| +void Layer::SetFallbackSurface( |
| + const cc::SurfaceInfo& surface_info, |
| + scoped_refptr<cc::SurfaceReferenceFactory> ref_factory) { |
| + DCHECK(type_ == LAYER_TEXTURED || type_ == LAYER_SOLID_COLOR); |
| + DCHECK(surface_layer_); |
| + |
| + // TODO(fsamuel): We should compute the gutter in the display compositor. |
| + // If the SurfaceLayer is NOT opaque, then the parent client should manually |
| + // insert gutter layers. |
|
sadrul
2017/03/31 01:26:20
Maybe just comment that we need to fix for gutteri
Fady Samuel
2017/03/31 01:57:43
I've gotten rid of the second sentence. We should
|
| + surface_layer_->SetFallbackSurfaceInfo(surface_info); |
| + |
| + for (const auto& mirror : mirrors_) |
| + mirror->dest()->SetFallbackSurface(surface_info, ref_factory); |
| +} |
| + |
| void Layer::SetShowSolidColorContent() { |
| DCHECK_EQ(type_, LAYER_SOLID_COLOR); |