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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h

Issue 2810423003: Schedule bitmap animation timers on the compositor task runner. (Closed)
Patch Set: merge recent BitmapImage changes Created 3 years, 7 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_
7 7
8 #include "platform/scheduler/renderer/web_view_scheduler.h" 8 #include "platform/scheduler/renderer/web_view_scheduler.h"
9 #include "public/platform/WebString.h" 9 #include "public/platform/WebString.h"
10 #include "public/platform/WebThread.h" 10 #include "public/platform/WebThread.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // run earlier than it normally would. 65 // run earlier than it normally would.
66 virtual void PostNonNestableIdleTask(const WebTraceLocation&, 66 virtual void PostNonNestableIdleTask(const WebTraceLocation&,
67 WebThread::IdleTask*) = 0; 67 WebThread::IdleTask*) = 0;
68 68
69 // Returns a WebTaskRunner for loading tasks. Can be called from any thread. 69 // Returns a WebTaskRunner for loading tasks. Can be called from any thread.
70 virtual WebTaskRunner* LoadingTaskRunner() = 0; 70 virtual WebTaskRunner* LoadingTaskRunner() = 0;
71 71
72 // Returns a WebTaskRunner for timer tasks. Can be called from any thread. 72 // Returns a WebTaskRunner for timer tasks. Can be called from any thread.
73 virtual WebTaskRunner* TimerTaskRunner() = 0; 73 virtual WebTaskRunner* TimerTaskRunner() = 0;
74 74
75 // Returns a WebTaskRunner for compositor tasks. This is intended only to be
76 // used for animation and rendering related tasks (e.g. animated GIFS) and
Sami 2017/05/16 13:51:45 s/for/by specific/
Dan Elphick 2017/05/16 14:09:52 Done.
77 // should not generally be used.
78 virtual WebTaskRunner* CompositorTaskRunner() = 0;
79
75 // Creates a new WebViewScheduler for a given WebView. Must be called from 80 // Creates a new WebViewScheduler for a given WebView. Must be called from
76 // the associated WebThread. 81 // the associated WebThread.
77 virtual std::unique_ptr<WebViewScheduler> CreateWebViewScheduler( 82 virtual std::unique_ptr<WebViewScheduler> CreateWebViewScheduler(
78 InterventionReporter*, 83 InterventionReporter*,
79 WebViewScheduler::WebViewSchedulerSettings*) = 0; 84 WebViewScheduler::WebViewSchedulerSettings*) = 0;
80 85
81 // Suspends the timer queue and increments the timer queue suspension count. 86 // Suspends the timer queue and increments the timer queue suspension count.
82 // May only be called from the main thread. 87 // May only be called from the main thread.
83 virtual void SuspendTimerQueue() = 0; 88 virtual void SuspendTimerQueue() = 0;
84 89
(...skipping 16 matching lines...) Expand all
101 106
102 void PostIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); 107 void PostIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>);
103 void PostNonNestableIdleTask(const WebTraceLocation&, 108 void PostNonNestableIdleTask(const WebTraceLocation&,
104 std::unique_ptr<IdleTask>); 109 std::unique_ptr<IdleTask>);
105 #endif 110 #endif
106 }; 111 };
107 112
108 } // namespace blink 113 } // namespace blink
109 114
110 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H _ 115 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698