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

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

Issue 2878113002: mus: Embedder can request and observe BeginFrame for embedded client. (Closed)
Patch Set: . Created 3 years, 7 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 "ui/aura/mus/window_tree_client.h" 5 #include "ui/aura/mus/window_tree_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 if (transport_value) 891 if (transport_value)
892 transport_value_mojo.emplace(std::move(*transport_value)); 892 transport_value_mojo.emplace(std::move(*transport_value));
893 893
894 const uint32_t change_id = 894 const uint32_t change_id =
895 ScheduleInFlightChange(base::MakeUnique<InFlightPropertyChange>( 895 ScheduleInFlightChange(base::MakeUnique<InFlightPropertyChange>(
896 window, transport_name, std::move(data_mus->transport_value))); 896 window, transport_name, std::move(data_mus->transport_value)));
897 tree_->SetWindowProperty(change_id, window->server_id(), transport_name, 897 tree_->SetWindowProperty(change_id, window->server_id(), transport_name,
898 transport_value_mojo); 898 transport_value_mojo);
899 } 899 }
900 900
901 void WindowTreeClient::InstallBeginFrameObserver(
Fady Samuel 2017/05/12 22:42:55 RequestBeginFrames?
sadrul 2017/05/13 03:01:38 Done.
902 WindowMus* window,
903 cc::mojom::FrameSinkObserverPtr observer) {
904 tree_->RequestBeginFrame(window->server_id(), std::move(observer));
905 }
906
901 void WindowTreeClient::OnWmMoveLoopCompleted(uint32_t change_id, 907 void WindowTreeClient::OnWmMoveLoopCompleted(uint32_t change_id,
902 bool completed) { 908 bool completed) {
903 if (window_manager_client_) 909 if (window_manager_client_)
904 window_manager_client_->WmResponse(change_id, completed); 910 window_manager_client_->WmResponse(change_id, completed);
905 911
906 if (change_id == current_wm_move_loop_change_) { 912 if (change_id == current_wm_move_loop_change_) {
907 current_wm_move_loop_change_ = 0; 913 current_wm_move_loop_change_ = 0;
908 current_wm_move_loop_window_id_ = 0; 914 current_wm_move_loop_window_id_ = 0;
909 } 915 }
910 } 916 }
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 } 2082 }
2077 2083
2078 void WindowTreeClient::OnCompositingLockStateChanged( 2084 void WindowTreeClient::OnCompositingLockStateChanged(
2079 ui::Compositor* compositor) {} 2085 ui::Compositor* compositor) {}
2080 2086
2081 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { 2087 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) {
2082 compositor->RemoveObserver(this); 2088 compositor->RemoveObserver(this);
2083 } 2089 }
2084 2090
2085 } // namespace aura 2091 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698