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

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

Issue 2923583002: Remove RendererCompositorFrameSink and use ClientCompositorFrameSink instead (Closed)
Patch Set: 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
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 "ui/aura/client/aura_constants.h" 8 #include "ui/aura/client/aura_constants.h"
9 #include "ui/aura/client/transient_window_client.h" 9 #include "ui/aura/client/transient_window_client.h"
10 #include "ui/aura/mus/client_surface_embedder.h" 10 #include "ui/aura/mus/client_surface_embedder.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 cc::mojom::MojoCompositorFrameSinkRequest sink_request = 102 cc::mojom::MojoCompositorFrameSinkRequest sink_request =
103 mojo::MakeRequest(&sink_info); 103 mojo::MakeRequest(&sink_info);
104 cc::mojom::MojoCompositorFrameSinkClientPtr client; 104 cc::mojom::MojoCompositorFrameSinkClientPtr client;
105 cc::mojom::MojoCompositorFrameSinkClientRequest client_request = 105 cc::mojom::MojoCompositorFrameSinkClientRequest client_request =
106 mojo::MakeRequest(&client); 106 mojo::MakeRequest(&client);
107 constexpr bool enable_surface_synchronization = true; 107 constexpr bool enable_surface_synchronization = true;
108 auto compositor_frame_sink = base::MakeUnique<viz::ClientCompositorFrameSink>( 108 auto compositor_frame_sink = base::MakeUnique<viz::ClientCompositorFrameSink>(
109 std::move(context_provider), nullptr /* worker_context_provider */, 109 std::move(context_provider), nullptr /* worker_context_provider */,
110 gpu_memory_buffer_manager, nullptr /* shared_bitmap_manager */, 110 gpu_memory_buffer_manager, nullptr /* shared_bitmap_manager */,
111 nullptr /* synthetic_begin_frame_source */, std::move(sink_info), 111 nullptr /* synthetic_begin_frame_source */, std::move(sink_info),
112 std::move(client_request), enable_surface_synchronization); 112 std::move(client_request),
113 base::MakeUnique<viz::DefaultLocalSurfaceIdProvider>(),
114 enable_surface_synchronization);
113 window_tree_client_->AttachCompositorFrameSink( 115 window_tree_client_->AttachCompositorFrameSink(
114 server_id(), std::move(sink_request), std::move(client)); 116 server_id(), std::move(sink_request), std::move(client));
115 return std::move(compositor_frame_sink); 117 return std::move(compositor_frame_sink);
116 } 118 }
117 119
118 WindowPortMus::ServerChangeIdType WindowPortMus::ScheduleChange( 120 WindowPortMus::ServerChangeIdType WindowPortMus::ScheduleChange(
119 const ServerChangeType type, 121 const ServerChangeType type,
120 const ServerChangeData& data) { 122 const ServerChangeData& data) {
121 ServerChange change; 123 ServerChange change;
122 change.type = type; 124 change.type = type;
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 if (!client_surface_embedder_) { 556 if (!client_surface_embedder_) {
555 client_surface_embedder_ = base::MakeUnique<ClientSurfaceEmbedder>( 557 client_surface_embedder_ = base::MakeUnique<ClientSurfaceEmbedder>(
556 window_, window_tree_client_->normal_client_area_insets_); 558 window_, window_tree_client_->normal_client_area_insets_);
557 } 559 }
558 560
559 client_surface_embedder_->SetPrimarySurfaceInfo(primary_surface_info_); 561 client_surface_embedder_->SetPrimarySurfaceInfo(primary_surface_info_);
560 client_surface_embedder_->SetFallbackSurfaceInfo(fallback_surface_info_); 562 client_surface_embedder_->SetFallbackSurfaceInfo(fallback_surface_info_);
561 } 563 }
562 564
563 } // namespace aura 565 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698