| 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/mus/surface_id_handler.h" | |
| 9 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 10 | 9 |
| 11 namespace aura { | 10 namespace aura { |
| 12 namespace { | 11 namespace { |
| 13 | 12 |
| 14 // TODO(mfomitchev, samans): Remove these stub classes once the SurfaceReference | 13 // TODO(mfomitchev, samans): Remove these stub classes once the SurfaceReference |
| 15 // work is complete. | 14 // work is complete. |
| 16 class StubSurfaceReference : public cc::SurfaceReferenceBase { | 15 class StubSurfaceReference : public cc::SurfaceReferenceBase { |
| 17 public: | 16 public: |
| 18 StubSurfaceReference(scoped_refptr<const cc::SurfaceReferenceFactory> factory) | 17 StubSurfaceReference(scoped_refptr<const cc::SurfaceReferenceFactory> factory) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 gfx::Rect(0, 0, frame_size.width(), frame_size.height())); | 80 gfx::Rect(0, 0, frame_size.width(), frame_size.height())); |
| 82 // Clip to window bounds. | 81 // Clip to window bounds. |
| 83 clip_layer_->SetBounds( | 82 clip_layer_->SetBounds( |
| 84 gfx::Rect(0, 0, window_->bounds().width(), window_->bounds().height())); | 83 gfx::Rect(0, 0, window_->bounds().width(), window_->bounds().height())); |
| 85 | 84 |
| 86 surface_layer_->SetShowSurface( | 85 surface_layer_->SetShowSurface( |
| 87 surface_info, make_scoped_refptr(new StubSurfaceReferenceFactory)); | 86 surface_info, make_scoped_refptr(new StubSurfaceReferenceFactory)); |
| 88 } | 87 } |
| 89 | 88 |
| 90 } // namespace aura | 89 } // namespace aura |
| OLD | NEW |