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

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

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Rebase 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 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 change_data.property_name = 513 change_data.property_name =
514 GetPropertyConverter()->GetTransportNameForPropertyKey(key); 514 GetPropertyConverter()->GetTransportNameForPropertyKey(key);
515 // TODO(sky): investigate to see if we need to compare data. In particular do 515 // TODO(sky): investigate to see if we need to compare data. In particular do
516 // we ever have a case where changing a property cascades into changing the 516 // we ever have a case where changing a property cascades into changing the
517 // same property? 517 // same property?
518 if (!RemoveChangeByTypeAndData(ServerChangeType::PROPERTY, change_data)) 518 if (!RemoveChangeByTypeAndData(ServerChangeType::PROPERTY, change_data))
519 window_tree_client_->OnWindowMusPropertyChanged(this, key, old_value, 519 window_tree_client_->OnWindowMusPropertyChanged(this, key, old_value,
520 std::move(data)); 520 std::move(data));
521 } 521 }
522 522
523 std::unique_ptr<cc::CompositorFrameSink>
524 WindowPortMus::OnCreateCompositorFrameSink() {
525 return nullptr;
Fady Samuel 2017/05/08 15:52:09 TODO here to implement this.
Peng 2017/05/08 17:44:39 Done.
526 }
527
523 void WindowPortMus::UpdatePrimarySurfaceInfo() { 528 void WindowPortMus::UpdatePrimarySurfaceInfo() {
524 bool embeds_surface = window_mus_type() == WindowMusType::TOP_LEVEL_IN_WM || 529 bool embeds_surface = window_mus_type() == WindowMusType::TOP_LEVEL_IN_WM ||
525 window_mus_type() == WindowMusType::EMBED_IN_OWNER; 530 window_mus_type() == WindowMusType::EMBED_IN_OWNER;
526 if (!embeds_surface || !window_tree_client_->enable_surface_synchronization_) 531 if (!embeds_surface || !window_tree_client_->enable_surface_synchronization_)
527 return; 532 return;
528 533
529 if (!frame_sink_id_.is_valid() || !local_surface_id_.is_valid()) 534 if (!frame_sink_id_.is_valid() || !local_surface_id_.is_valid())
530 return; 535 return;
531 536
532 SetPrimarySurfaceInfo( 537 SetPrimarySurfaceInfo(
(...skipping 10 matching lines...) Expand all
543 if (!client_surface_embedder_) { 548 if (!client_surface_embedder_) {
544 client_surface_embedder_ = base::MakeUnique<ClientSurfaceEmbedder>( 549 client_surface_embedder_ = base::MakeUnique<ClientSurfaceEmbedder>(
545 window_, window_tree_client_->normal_client_area_insets_); 550 window_, window_tree_client_->normal_client_area_insets_);
546 } 551 }
547 552
548 client_surface_embedder_->SetPrimarySurfaceInfo(primary_surface_info_); 553 client_surface_embedder_->SetPrimarySurfaceInfo(primary_surface_info_);
549 client_surface_embedder_->SetFallbackSurfaceInfo(fallback_surface_info_); 554 client_surface_embedder_->SetFallbackSurfaceInfo(fallback_surface_info_);
550 } 555 }
551 556
552 } // namespace aura 557 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698