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

Side by Side Diff: ui/aura/mus/client_surface_embedder.cc

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: First cut propagating LocalSurfaceId when WindowTreeHost requests resize Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ui/aura/mus/client_surface_embedder.h ('k') | ui/aura/mus/in_flight_change.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 surface_layer_->SetBounds( 64 surface_layer_->SetBounds(
65 gfx::Rect(0, 0, frame_size.width(), frame_size.height())); 65 gfx::Rect(0, 0, frame_size.width(), frame_size.height()));
66 // Clip to window bounds. 66 // Clip to window bounds.
67 clip_layer_->SetBounds( 67 clip_layer_->SetBounds(
68 gfx::Rect(0, 0, window_->bounds().width(), window_->bounds().height())); 68 gfx::Rect(0, 0, window_->bounds().width(), window_->bounds().height()));
69 69
70 surface_layer_->SetShowPrimarySurface( 70 surface_layer_->SetShowPrimarySurface(
71 surface_info, make_scoped_refptr(new StubSurfaceReferenceFactory)); 71 surface_info, make_scoped_refptr(new StubSurfaceReferenceFactory));
72 } 72 }
73 73
74 void ClientSurfaceEmbedder::SetFallbackSurfaceInfo(
75 const cc::SurfaceInfo& surface_info) {
76 surface_layer_->SetFallbackSurface(
77 surface_info, make_scoped_refptr(new StubSurfaceReferenceFactory));
78 }
79
74 } // namespace aura 80 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/mus/client_surface_embedder.h ('k') | ui/aura/mus/in_flight_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698