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

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

Issue 2299003002: Remove uses of external begin frame sources (Closed)
Patch Set: Fix test crashes Created 4 years, 3 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 #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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 bool IsPartialRasterEnabled() override; 210 bool IsPartialRasterEnabled() override;
211 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; 211 bool IsGpuMemoryBufferCompositorResourcesEnabled() override;
212 bool IsElasticOverscrollEnabled() override; 212 bool IsElasticOverscrollEnabled() override;
213 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; 213 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override;
214 scoped_refptr<base::SingleThreadTaskRunner> 214 scoped_refptr<base::SingleThreadTaskRunner>
215 GetCompositorMainThreadTaskRunner() override; 215 GetCompositorMainThreadTaskRunner() override;
216 scoped_refptr<base::SingleThreadTaskRunner> 216 scoped_refptr<base::SingleThreadTaskRunner>
217 GetCompositorImplThreadTaskRunner() override; 217 GetCompositorImplThreadTaskRunner() override;
218 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 218 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
219 blink::scheduler::RendererScheduler* GetRendererScheduler() override; 219 blink::scheduler::RendererScheduler* GetRendererScheduler() override;
220 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
221 int routing_id) override;
222 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; 220 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override;
223 cc::TaskGraphRunner* GetTaskGraphRunner() override; 221 cc::TaskGraphRunner* GetTaskGraphRunner() override;
224 bool AreImageDecodeTasksEnabled() override; 222 bool AreImageDecodeTasksEnabled() override;
225 bool IsThreadedAnimationEnabled() override; 223 bool IsThreadedAnimationEnabled() override;
226 224
227 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. 225 // blink::scheduler::RendererScheduler::RAILModeObserver implementation.
228 void OnRAILModeChanged(v8::RAILMode rail_mode) override; 226 void OnRAILModeChanged(v8::RAILMode rail_mode) override;
229 227
230 // Synchronously establish a channel to the GPU plugin if not previously 228 // Synchronously establish a channel to the GPU plugin if not previously
231 // established or if it has been lost (for example if the GPU plugin crashed). 229 // established or if it has been lost (for example if the GPU plugin crashed).
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 const WorkerProcessMsg_CreateWorker_Params& params); 518 const WorkerProcessMsg_CreateWorker_Params& params);
521 bool RendererIsHidden() const; 519 bool RendererIsHidden() const;
522 void OnRendererHidden(); 520 void OnRendererHidden();
523 void OnRendererVisible(); 521 void OnRendererVisible();
524 522
525 void ReleaseFreeMemory(); 523 void ReleaseFreeMemory();
526 524
527 void OnSyncMemoryPressure( 525 void OnSyncMemoryPressure(
528 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 526 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
529 527
528 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
529 int routing_id);
530
530 // These objects live solely on the render thread. 531 // These objects live solely on the render thread.
531 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; 532 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_;
532 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 533 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
533 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 534 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
534 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; 535 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_;
535 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 536 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
536 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; 537 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
537 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; 538 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_;
538 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; 539 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_;
539 540
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 715 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
715 }; 716 };
716 717
717 #if defined(COMPILER_MSVC) 718 #if defined(COMPILER_MSVC)
718 #pragma warning(pop) 719 #pragma warning(pop)
719 #endif 720 #endif
720 721
721 } // namespace content 722 } // namespace content
722 723
723 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 724 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698