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

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: Restore mash 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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 } 661 }
662 662
663 cc::TaskGraphRunner* GpuProcessTransportFactory::GetTaskGraphRunner() { 663 cc::TaskGraphRunner* GpuProcessTransportFactory::GetTaskGraphRunner() {
664 return task_graph_runner_.get(); 664 return task_graph_runner_.get();
665 } 665 }
666 666
667 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() { 667 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() {
668 return this; 668 return this;
669 } 669 }
670 670
671 ui::ContextFactoryPrivate*
672 GpuProcessTransportFactory::GetContextFactoryPrivate() {
673 return this;
674 }
675
671 cc::FrameSinkId GpuProcessTransportFactory::AllocateFrameSinkId() { 676 cc::FrameSinkId GpuProcessTransportFactory::AllocateFrameSinkId() {
672 return cc::FrameSinkId(0, next_sink_id_++); 677 return cc::FrameSinkId(0, next_sink_id_++);
673 } 678 }
674 679
675 void GpuProcessTransportFactory::SetDisplayVisible(ui::Compositor* compositor, 680 void GpuProcessTransportFactory::SetDisplayVisible(ui::Compositor* compositor,
676 bool visible) { 681 bool visible) {
677 PerCompositorDataMap::iterator it = per_compositor_data_.find(compositor); 682 PerCompositorDataMap::iterator it = per_compositor_data_.find(compositor);
678 if (it == per_compositor_data_.end()) 683 if (it == per_compositor_data_.end())
679 return; 684 return;
680 PerCompositorData* data = it->second.get(); 685 PerCompositorData* data = it->second.get();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 shared_vulkan_context_provider_ = 894 shared_vulkan_context_provider_ =
890 cc::VulkanInProcessContextProvider::Create(); 895 cc::VulkanInProcessContextProvider::Create();
891 } 896 }
892 897
893 shared_vulkan_context_provider_initialized_ = true; 898 shared_vulkan_context_provider_initialized_ = true;
894 } 899 }
895 return shared_vulkan_context_provider_; 900 return shared_vulkan_context_provider_;
896 } 901 }
897 902
898 } // namespace content 903 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.h ('k') | content/browser/compositor/image_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698