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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2830143002: Add FrameSinkManagerHost to NoTransportImageTransportFactory. (Closed)
Patch Set: Also android. Created 3 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer_host/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 class SingleThreadTaskGraphRunner : public cc::SingleThreadTaskGraphRunner { 88 class SingleThreadTaskGraphRunner : public cc::SingleThreadTaskGraphRunner {
89 public: 89 public:
90 SingleThreadTaskGraphRunner() { 90 SingleThreadTaskGraphRunner() {
91 Start("CompositorTileWorker1", base::SimpleThread::Options()); 91 Start("CompositorTileWorker1", base::SimpleThread::Options());
92 } 92 }
93 93
94 ~SingleThreadTaskGraphRunner() override { Shutdown(); } 94 ~SingleThreadTaskGraphRunner() override { Shutdown(); }
95 }; 95 };
96 96
97 struct CompositorDependencies { 97 struct CompositorDependencies {
98 CompositorDependencies() : frame_sink_id_allocator(kDefaultClientId) {} 98 CompositorDependencies() : frame_sink_id_allocator(kDefaultClientId) {
99 frame_sink_manager_host.ConnectToFrameSinkManager();
100 }
99 101
100 SingleThreadTaskGraphRunner task_graph_runner; 102 SingleThreadTaskGraphRunner task_graph_runner;
101 FrameSinkManagerHost frame_sink_manager_host; 103 FrameSinkManagerHost frame_sink_manager_host;
102 cc::FrameSinkIdAllocator frame_sink_id_allocator; 104 cc::FrameSinkIdAllocator frame_sink_id_allocator;
103 105
104 #if BUILDFLAG(ENABLE_VULKAN) 106 #if BUILDFLAG(ENABLE_VULKAN)
105 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider; 107 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider;
106 #endif 108 #endif
107 }; 109 };
108 110
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 } 875 }
874 GetSurfaceManager()->UnregisterFrameSinkHierarchy(frame_sink_id_, 876 GetSurfaceManager()->UnregisterFrameSinkHierarchy(frame_sink_id_,
875 frame_sink_id); 877 frame_sink_id);
876 } 878 }
877 879
878 bool CompositorImpl::HavePendingReadbacks() { 880 bool CompositorImpl::HavePendingReadbacks() {
879 return !readback_layer_tree_->children().empty(); 881 return !readback_layer_tree_->children().empty();
880 } 882 }
881 883
882 } // namespace content 884 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/test/no_transport_image_transport_factory.cc ('k') | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698