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

Side by Side Diff: services/ui/public/cpp/window.cc

Issue 2626023007: Passing FrameSinkId to WindowCompositorFrameSink (Closed)
Patch Set: c Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "services/ui/public/cpp/window.h" 5 #include "services/ui/public/cpp/window.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return false; 268 return false;
269 return parent_ ? parent_->IsDrawn() : parent_drawn_; 269 return parent_ ? parent_->IsDrawn() : parent_drawn_;
270 } 270 }
271 271
272 std::unique_ptr<WindowCompositorFrameSink> Window::RequestCompositorFrameSink( 272 std::unique_ptr<WindowCompositorFrameSink> Window::RequestCompositorFrameSink(
273 scoped_refptr<cc::ContextProvider> context_provider, 273 scoped_refptr<cc::ContextProvider> context_provider,
274 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) { 274 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) {
275 std::unique_ptr<WindowCompositorFrameSinkBinding> 275 std::unique_ptr<WindowCompositorFrameSinkBinding>
276 compositor_frame_sink_binding; 276 compositor_frame_sink_binding;
277 std::unique_ptr<WindowCompositorFrameSink> compositor_frame_sink = 277 std::unique_ptr<WindowCompositorFrameSink> compositor_frame_sink =
278 WindowCompositorFrameSink::Create(std::move(context_provider), 278 WindowCompositorFrameSink::Create(
279 gpu_memory_buffer_manager, 279 cc::FrameSinkId(server_id(), 0), std::move(context_provider),
280 &compositor_frame_sink_binding); 280 gpu_memory_buffer_manager, &compositor_frame_sink_binding);
281 AttachCompositorFrameSink(std::move(compositor_frame_sink_binding)); 281 AttachCompositorFrameSink(std::move(compositor_frame_sink_binding));
282 return compositor_frame_sink; 282 return compositor_frame_sink;
283 } 283 }
284 284
285 void Window::AttachCompositorFrameSink( 285 void Window::AttachCompositorFrameSink(
286 std::unique_ptr<WindowCompositorFrameSinkBinding> 286 std::unique_ptr<WindowCompositorFrameSinkBinding>
287 compositor_frame_sink_binding) { 287 compositor_frame_sink_binding) {
288 window_tree()->AttachCompositorFrameSink( 288 window_tree()->AttachCompositorFrameSink(
289 server_id_, 289 server_id_,
290 std::move(compositor_frame_sink_binding->compositor_frame_sink_request_), 290 std::move(compositor_frame_sink_binding->compositor_frame_sink_request_),
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 notifier->NotifyWindowReordered(); 956 notifier->NotifyWindowReordered();
957 957
958 return true; 958 return true;
959 } 959 }
960 960
961 // static 961 // static
962 Window** Window::GetStackingTarget(Window* window) { 962 Window** Window::GetStackingTarget(Window* window) {
963 return &window->stacking_target_; 963 return &window->stacking_target_;
964 } 964 }
965 } // namespace ui 965 } // namespace ui
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | services/ui/public/cpp/window_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698