OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |