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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 1 month 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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 bool IsDistanceFieldTextEnabled() override; 226 bool IsDistanceFieldTextEnabled() override;
227 bool IsZeroCopyEnabled() override; 227 bool IsZeroCopyEnabled() override;
228 bool IsPartialRasterEnabled() override; 228 bool IsPartialRasterEnabled() override;
229 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; 229 bool IsGpuMemoryBufferCompositorResourcesEnabled() override;
230 bool IsElasticOverscrollEnabled() override; 230 bool IsElasticOverscrollEnabled() override;
231 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; 231 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override;
232 scoped_refptr<base::SingleThreadTaskRunner> 232 scoped_refptr<base::SingleThreadTaskRunner>
233 GetCompositorMainThreadTaskRunner() override; 233 GetCompositorMainThreadTaskRunner() override;
234 scoped_refptr<base::SingleThreadTaskRunner> 234 scoped_refptr<base::SingleThreadTaskRunner>
235 GetCompositorImplThreadTaskRunner() override; 235 GetCompositorImplThreadTaskRunner() override;
236 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
237 blink::scheduler::RendererScheduler* GetRendererScheduler() override; 236 blink::scheduler::RendererScheduler* GetRendererScheduler() override;
238 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; 237 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override;
239 cc::TaskGraphRunner* GetTaskGraphRunner() override; 238 cc::TaskGraphRunner* GetTaskGraphRunner() override;
240 bool AreImageDecodeTasksEnabled() override; 239 bool AreImageDecodeTasksEnabled() override;
241 bool IsThreadedAnimationEnabled() override; 240 bool IsThreadedAnimationEnabled() override;
242 241
243 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. 242 // blink::scheduler::RendererScheduler::RAILModeObserver implementation.
244 void OnRAILModeChanged(v8::RAILMode rail_mode) override; 243 void OnRAILModeChanged(v8::RAILMode rail_mode) override;
245 244
246 // Synchronously establish a channel to the GPU plugin if not previously 245 // Synchronously establish a channel to the GPU plugin if not previously
247 // established or if it has been lost (for example if the GPU plugin crashed). 246 // established or if it has been lost (for example if the GPU plugin crashed).
248 // If there is a pending asynchronous request, it will be completed by the 247 // If there is a pending asynchronous request, it will be completed by the
249 // time this routine returns. 248 // time this routine returns.
250 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); 249 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync();
251 250
251 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager();
252
252 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( 253 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(
253 bool use_software, 254 bool use_software,
254 int routing_id, 255 int routing_id,
255 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue, 256 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue,
256 const GURL& url); 257 const GURL& url);
257 258
258 AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry(); 259 AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry();
259 260
260 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( 261 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest(
261 int32_t routing_id, 262 int32_t routing_id,
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 748 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
748 }; 749 };
749 750
750 #if defined(COMPILER_MSVC) 751 #if defined(COMPILER_MSVC)
751 #pragma warning(pop) 752 #pragma warning(pop)
752 #endif 753 #endif
753 754
754 } // namespace content 755 } // namespace content
755 756
756 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 757 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698