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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |