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

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

Issue 2923583002: Remove RendererCompositorFrameSink and use ClientCompositorFrameSink instead (Closed)
Patch Set: Fix windows Created 3 years, 6 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 | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/window_port_mus.h" 5 #include "ui/aura/mus/window_port_mus.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/viz/client/local_surface_id_provider.h"
8 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
9 #include "ui/aura/client/transient_window_client.h" 10 #include "ui/aura/client/transient_window_client.h"
10 #include "ui/aura/mus/client_surface_embedder.h" 11 #include "ui/aura/mus/client_surface_embedder.h"
11 #include "ui/aura/mus/property_converter.h" 12 #include "ui/aura/mus/property_converter.h"
12 #include "ui/aura/mus/window_tree_client.h" 13 #include "ui/aura/mus/window_tree_client.h"
13 #include "ui/aura/mus/window_tree_client_delegate.h" 14 #include "ui/aura/mus/window_tree_client_delegate.h"
14 #include "ui/aura/window.h" 15 #include "ui/aura/window.h"
15 #include "ui/aura/window_delegate.h" 16 #include "ui/aura/window_delegate.h"
16 #include "ui/aura/window_observer.h" 17 #include "ui/aura/window_observer.h"
17 #include "ui/base/class_property.h" 18 #include "ui/base/class_property.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 cc::mojom::MojoCompositorFrameSinkRequest sink_request = 103 cc::mojom::MojoCompositorFrameSinkRequest sink_request =
103 mojo::MakeRequest(&sink_info); 104 mojo::MakeRequest(&sink_info);
104 cc::mojom::MojoCompositorFrameSinkClientPtr client; 105 cc::mojom::MojoCompositorFrameSinkClientPtr client;
105 cc::mojom::MojoCompositorFrameSinkClientRequest client_request = 106 cc::mojom::MojoCompositorFrameSinkClientRequest client_request =
106 mojo::MakeRequest(&client); 107 mojo::MakeRequest(&client);
107 constexpr bool enable_surface_synchronization = true; 108 constexpr bool enable_surface_synchronization = true;
108 auto compositor_frame_sink = base::MakeUnique<viz::ClientCompositorFrameSink>( 109 auto compositor_frame_sink = base::MakeUnique<viz::ClientCompositorFrameSink>(
109 std::move(context_provider), nullptr /* worker_context_provider */, 110 std::move(context_provider), nullptr /* worker_context_provider */,
110 gpu_memory_buffer_manager, nullptr /* shared_bitmap_manager */, 111 gpu_memory_buffer_manager, nullptr /* shared_bitmap_manager */,
111 nullptr /* synthetic_begin_frame_source */, std::move(sink_info), 112 nullptr /* synthetic_begin_frame_source */, std::move(sink_info),
112 std::move(client_request), enable_surface_synchronization); 113 std::move(client_request),
114 base::MakeUnique<viz::DefaultLocalSurfaceIdProvider>(),
115 enable_surface_synchronization);
113 window_tree_client_->AttachCompositorFrameSink( 116 window_tree_client_->AttachCompositorFrameSink(
114 server_id(), std::move(sink_request), std::move(client)); 117 server_id(), std::move(sink_request), std::move(client));
115 return std::move(compositor_frame_sink); 118 return std::move(compositor_frame_sink);
116 } 119 }
117 120
118 WindowPortMus::ServerChangeIdType WindowPortMus::ScheduleChange( 121 WindowPortMus::ServerChangeIdType WindowPortMus::ScheduleChange(
119 const ServerChangeType type, 122 const ServerChangeType type,
120 const ServerChangeData& data) { 123 const ServerChangeData& data) {
121 ServerChange change; 124 ServerChange change;
122 change.type = type; 125 change.type = type;
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 if (!client_surface_embedder_) { 557 if (!client_surface_embedder_) {
555 client_surface_embedder_ = base::MakeUnique<ClientSurfaceEmbedder>( 558 client_surface_embedder_ = base::MakeUnique<ClientSurfaceEmbedder>(
556 window_, window_tree_client_->normal_client_area_insets_); 559 window_, window_tree_client_->normal_client_area_insets_);
557 } 560 }
558 561
559 client_surface_embedder_->SetPrimarySurfaceInfo(primary_surface_info_); 562 client_surface_embedder_->SetPrimarySurfaceInfo(primary_surface_info_);
560 client_surface_embedder_->SetFallbackSurfaceInfo(fallback_surface_info_); 563 client_surface_embedder_->SetFallbackSurfaceInfo(fallback_surface_info_);
561 } 564 }
562 565
563 } // namespace aura 566 } // namespace aura
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698