Chromium Code Reviews| Index: ui/compositor/layer.cc |
| diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc |
| index c235821bf6ae9a4e778f73442b8a7988169fae50..71476319e0f49d8e202c6613f6469c7bb3b86db0 100644 |
| --- a/ui/compositor/layer.cc |
| +++ b/ui/compositor/layer.cc |
| @@ -675,6 +675,19 @@ void Layer::SetShowPrimarySurface( |
| mirror->dest()->SetShowPrimarySurface(surface_info, ref_factory); |
| } |
| +void Layer::SetFallbackSurface( |
| + const cc::SurfaceInfo& surface_info, |
| + scoped_refptr<cc::SurfaceReferenceFactory> ref_factory) { |
|
sadrul
2017/03/31 05:23:00
It doesn't look like |ref_factory| is needed?
Fady Samuel
2017/03/31 12:51:27
Heh, you're right. It's a remnant of an old versio
|
| + DCHECK(type_ == LAYER_TEXTURED || type_ == LAYER_SOLID_COLOR); |
| + DCHECK(surface_layer_); |
| + |
| + // TODO(fsamuel): We should compute the gutter in the display compositor. |
| + 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); |