OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/mus/client_surface_embedder.h" | 5 #include "ui/aura/mus/client_surface_embedder.h" |
6 | 6 |
7 #include "cc/surfaces/surface_reference_factory.h" | 7 #include "cc/surfaces/surface_reference_factory.h" |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 | 9 |
10 namespace aura { | 10 namespace aura { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 surface_layer_->SetBounds( | 65 surface_layer_->SetBounds( |
66 gfx::Rect(0, 0, frame_size.width(), frame_size.height())); | 66 gfx::Rect(0, 0, frame_size.width(), frame_size.height())); |
67 // Clip to window bounds. | 67 // Clip to window bounds. |
68 clip_layer_->SetBounds( | 68 clip_layer_->SetBounds( |
69 gfx::Rect(0, 0, window_->bounds().width(), window_->bounds().height())); | 69 gfx::Rect(0, 0, window_->bounds().width(), window_->bounds().height())); |
70 | 70 |
71 surface_layer_->SetShowPrimarySurface( | 71 surface_layer_->SetShowPrimarySurface( |
72 surface_info, make_scoped_refptr(new StubSurfaceReferenceFactory)); | 72 surface_info, make_scoped_refptr(new StubSurfaceReferenceFactory)); |
73 } | 73 } |
74 | 74 |
| 75 void ClientSurfaceEmbedder::SetFallbackSurfaceInfo( |
| 76 const cc::SurfaceInfo& surface_info) { |
| 77 surface_layer_->SetFallbackSurface(surface_info); |
| 78 } |
| 79 |
75 } // namespace aura | 80 } // namespace aura |
OLD | NEW |