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

Side by Side Diff: content/renderer/scheduler/renderer_scheduler.h

Issue 904633004: [cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to BeginMainFrameNotExpectedSoon Created 5 years, 10 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 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 #ifndef CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_
6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_ 6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_
7 7
8 #include "content/renderer/scheduler/single_thread_idle_task_runner.h" 8 #include "content/renderer/scheduler/single_thread_idle_task_runner.h"
9 #include "content/renderer/scheduler/task_queue_manager.h" 9 #include "content/renderer/scheduler/task_queue_manager.h"
10 #include "third_party/WebKit/public/web/WebInputEvent.h" 10 #include "third_party/WebKit/public/web/WebInputEvent.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // Returns the idle task runner. Tasks posted to this runner may be reordered 30 // Returns the idle task runner. Tasks posted to this runner may be reordered
31 // relative to other task types and may be starved for an arbitrarily long 31 // relative to other task types and may be starved for an arbitrarily long
32 // time if no idle time is available. 32 // time if no idle time is available.
33 virtual scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() = 0; 33 virtual scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() = 0;
34 34
35 // Returns the loading task runner. This queue is intended for tasks related 35 // Returns the loading task runner. This queue is intended for tasks related
36 // to resource dispatch, foreground HTML parsing, etc... 36 // to resource dispatch, foreground HTML parsing, etc...
37 virtual scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() = 0; 37 virtual scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() = 0;
38 38
39 // Called to notify about the start of an extended period where no frames
40 // need to be drawn.
Sami 2015/02/11 15:28:25 Could you add a note saying this needs to be calle
Sami 2015/02/11 15:28:25 Could you add a note saying this needs to be calle
rmcilroy 2015/02/13 16:32:45 Done.
41 virtual void BeginFrameNotExpectedSoon() = 0;
42
39 // Called to notify about the start of a new frame. Must be called from the 43 // Called to notify about the start of a new frame. Must be called from the
40 // main thread. 44 // main thread.
41 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0; 45 virtual void WillBeginFrame(const cc::BeginFrameArgs& args) = 0;
42 46
43 // Called to notify that a previously begun frame was committed. Must be 47 // Called to notify that a previously begun frame was committed. Must be
44 // called from the main thread. 48 // called from the main thread.
45 virtual void DidCommitFrameToCompositor() = 0; 49 virtual void DidCommitFrameToCompositor() = 0;
46 50
47 // Tells the scheduler that the system received an input event. Called by the 51 // Tells the scheduler that the system received an input event. Called by the
48 // compositor (impl) thread. 52 // compositor (impl) thread.
(...skipping 23 matching lines...) Expand all
72 virtual void Shutdown() = 0; 76 virtual void Shutdown() = 0;
73 77
74 protected: 78 protected:
75 RendererScheduler(); 79 RendererScheduler();
76 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); 80 DISALLOW_COPY_AND_ASSIGN(RendererScheduler);
77 }; 81 };
78 82
79 } // namespace content 83 } // namespace content
80 84
81 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_ 85 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698