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

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

Issue 2577313002: memory coordinator: Resume suspended renderer on NORMAL state change (Closed)
Patch Set: Remove DCHECK Created 4 years 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 // GpuChannelHostFactory implementation: 506 // GpuChannelHostFactory implementation:
507 bool IsMainThread() override; 507 bool IsMainThread() override;
508 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; 508 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
509 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 509 std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
510 size_t size) override; 510 size_t size) override;
511 511
512 // Purges memory and suspends the renderer. 512 // Purges memory and suspends the renderer.
513 void SuspendRenderer(); 513 void SuspendRenderer();
514 514
515 // Resumes the renderer if it is suspended.
516 void ResumeRendererIfNeeded();
517
515 // base::MemoryCoordinatorClient implementation: 518 // base::MemoryCoordinatorClient implementation:
516 void OnMemoryStateChange(base::MemoryState state) override; 519 void OnMemoryStateChange(base::MemoryState state) override;
517 520
518 void ClearMemory(); 521 void ClearMemory();
519 522
520 void Init( 523 void Init(
521 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 524 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
522 525
523 void InitializeCompositorThread(); 526 void InitializeCompositorThread();
524 527
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 772 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
770 }; 773 };
771 774
772 #if defined(COMPILER_MSVC) 775 #if defined(COMPILER_MSVC)
773 #pragma warning(pop) 776 #pragma warning(pop)
774 #endif 777 #endif
775 778
776 } // namespace content 779 } // namespace content
777 780
778 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 781 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698