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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Updated Created 4 years 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 "content/browser/compositor/gpu_process_transport_factory.h" 5 #include "content/browser/compositor/gpu_process_transport_factory.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 } 652 }
653 653
654 cc::TaskGraphRunner* GpuProcessTransportFactory::GetTaskGraphRunner() { 654 cc::TaskGraphRunner* GpuProcessTransportFactory::GetTaskGraphRunner() {
655 return task_graph_runner_.get(); 655 return task_graph_runner_.get();
656 } 656 }
657 657
658 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() { 658 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() {
659 return this; 659 return this;
660 } 660 }
661 661
662 ui::ContextFactoryPrivate*
663 GpuProcessTransportFactory::GetContextFactoryPrivate() {
664 return this;
665 }
666
662 cc::FrameSinkId GpuProcessTransportFactory::AllocateFrameSinkId() { 667 cc::FrameSinkId GpuProcessTransportFactory::AllocateFrameSinkId() {
663 return cc::FrameSinkId(0, next_sink_id_++); 668 return cc::FrameSinkId(0, next_sink_id_++);
664 } 669 }
665 670
666 void GpuProcessTransportFactory::SetDisplayVisible(ui::Compositor* compositor, 671 void GpuProcessTransportFactory::SetDisplayVisible(ui::Compositor* compositor,
667 bool visible) { 672 bool visible) {
668 PerCompositorDataMap::iterator it = per_compositor_data_.find(compositor); 673 PerCompositorDataMap::iterator it = per_compositor_data_.find(compositor);
669 if (it == per_compositor_data_.end()) 674 if (it == per_compositor_data_.end())
670 return; 675 return;
671 PerCompositorData* data = it->second.get(); 676 PerCompositorData* data = it->second.get();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 shared_vulkan_context_provider_ = 885 shared_vulkan_context_provider_ =
881 cc::VulkanInProcessContextProvider::Create(); 886 cc::VulkanInProcessContextProvider::Create();
882 } 887 }
883 888
884 shared_vulkan_context_provider_initialized_ = true; 889 shared_vulkan_context_provider_initialized_ = true;
885 } 890 }
886 return shared_vulkan_context_provider_; 891 return shared_vulkan_context_provider_;
887 } 892 }
888 893
889 } // namespace content 894 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698