| OLD | NEW |
| 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 Loading... |
| 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. |
| 41 virtual void BeginFrameNoLongerRequired() = 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 15 matching lines...) Expand all Loading... |
| 64 virtual void Shutdown() = 0; | 68 virtual void Shutdown() = 0; |
| 65 | 69 |
| 66 protected: | 70 protected: |
| 67 RendererScheduler(); | 71 RendererScheduler(); |
| 68 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 72 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
| 69 }; | 73 }; |
| 70 | 74 |
| 71 } // namespace content | 75 } // namespace content |
| 72 | 76 |
| 73 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_ | 77 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_H_ |
| OLD | NEW |