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

Side by Side Diff: services/ui/ws/window_tree.cc

Issue 2453013002: Mus: Remove dependency on ServerWindowCompositorFrameSink from FrameGenerator (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 | « services/ui/ws/window_server_test_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 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/ws/window_tree.h" 5 #include "services/ui/ws/window_tree.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 ServerWindow* parent_window = window->parent(); 768 ServerWindow* parent_window = window->parent();
769 ClientWindowId client_window_id, parent_client_window_id; 769 ClientWindowId client_window_id, parent_client_window_id;
770 if (!IsWindowKnown(window, &client_window_id) || 770 if (!IsWindowKnown(window, &client_window_id) ||
771 !IsWindowKnown(parent_window, &parent_client_window_id) || 771 !IsWindowKnown(parent_window, &parent_client_window_id) ||
772 !created_window_map_.count(parent_window->id())) { 772 !created_window_map_.count(parent_window->id())) {
773 return; 773 return;
774 } 774 }
775 775
776 ServerWindowCompositorFrameSinkManager* compositor_frame_sink_manager = 776 ServerWindowCompositorFrameSinkManager* compositor_frame_sink_manager =
777 window->GetOrCreateCompositorFrameSinkManager(); 777 window->GetOrCreateCompositorFrameSinkManager();
778 ServerWindowCompositorFrameSink* compositor_frame_sink = 778 cc::SurfaceSequence sequence =
779 compositor_frame_sink_manager->GetDefaultCompositorFrameSink(); 779 compositor_frame_sink_manager->CreateSurfaceSequence(
780 cc::SurfaceSequence sequence = compositor_frame_sink->CreateSurfaceSequence(); 780 mojom::CompositorFrameSinkType::DEFAULT);
781 client()->OnWindowSurfaceChanged(client_window_id.id, surface_id, sequence, 781 client()->OnWindowSurfaceChanged(client_window_id.id, surface_id, sequence,
782 frame_size, device_scale_factor); 782 frame_size, device_scale_factor);
783 } 783 }
784 784
785 void WindowTree::SendToPointerWatcher(const ui::Event& event, 785 void WindowTree::SendToPointerWatcher(const ui::Event& event,
786 ServerWindow* target_window) { 786 ServerWindow* target_window) {
787 if (!EventMatchesPointerWatcher(event)) 787 if (!EventMatchesPointerWatcher(event))
788 return; 788 return;
789 789
790 ClientWindowId client_window_id; 790 ClientWindowId client_window_id;
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, 1944 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset,
1945 effect_bitmask, callback); 1945 effect_bitmask, callback);
1946 } 1946 }
1947 1947
1948 void WindowTree::PerformOnDragDropDone() { 1948 void WindowTree::PerformOnDragDropDone() {
1949 client()->OnDragDropDone(); 1949 client()->OnDragDropDone();
1950 } 1950 }
1951 1951
1952 } // namespace ws 1952 } // namespace ws
1953 } // namespace ui 1953 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_server_test_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698