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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 2895673002: [scheduler] Add unthrottled-by-blockable task queue to fix touch latency regression. (Closed)
Patch Set: Address comments and disable a failing test Created 3 years, 6 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 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 }; 69 };
70 70
71 class EmptyFrameScheduler : public WebFrameScheduler { 71 class EmptyFrameScheduler : public WebFrameScheduler {
72 public: 72 public:
73 EmptyFrameScheduler() { DCHECK(IsMainThread()); } 73 EmptyFrameScheduler() { DCHECK(IsMainThread()); }
74 void SetFrameVisible(bool) override {} 74 void SetFrameVisible(bool) override {}
75 RefPtr<WebTaskRunner> LoadingTaskRunner() override; 75 RefPtr<WebTaskRunner> LoadingTaskRunner() override;
76 RefPtr<WebTaskRunner> TimerTaskRunner() override; 76 RefPtr<WebTaskRunner> TimerTaskRunner() override;
77 RefPtr<WebTaskRunner> UnthrottledTaskRunner() override; 77 RefPtr<WebTaskRunner> UnthrottledTaskRunner() override;
78 RefPtr<WebTaskRunner> SuspendableTaskRunner() override; 78 RefPtr<WebTaskRunner> SuspendableTaskRunner() override;
79 RefPtr<WebTaskRunner> UnthrottledButBlockableTaskRunner() override;
79 }; 80 };
80 81
81 RefPtr<WebTaskRunner> EmptyFrameScheduler::LoadingTaskRunner() { 82 RefPtr<WebTaskRunner> EmptyFrameScheduler::LoadingTaskRunner() {
82 return Platform::Current()->MainThread()->GetWebTaskRunner(); 83 return Platform::Current()->MainThread()->GetWebTaskRunner();
83 } 84 }
84 85
85 RefPtr<WebTaskRunner> EmptyFrameScheduler::TimerTaskRunner() { 86 RefPtr<WebTaskRunner> EmptyFrameScheduler::TimerTaskRunner() {
86 return Platform::Current()->MainThread()->GetWebTaskRunner(); 87 return Platform::Current()->MainThread()->GetWebTaskRunner();
87 } 88 }
88 89
89 RefPtr<WebTaskRunner> EmptyFrameScheduler::UnthrottledTaskRunner() { 90 RefPtr<WebTaskRunner> EmptyFrameScheduler::UnthrottledTaskRunner() {
90 return Platform::Current()->MainThread()->GetWebTaskRunner(); 91 return Platform::Current()->MainThread()->GetWebTaskRunner();
91 } 92 }
92 93
93 RefPtr<WebTaskRunner> EmptyFrameScheduler::SuspendableTaskRunner() { 94 RefPtr<WebTaskRunner> EmptyFrameScheduler::SuspendableTaskRunner() {
94 return Platform::Current()->MainThread()->GetWebTaskRunner(); 95 return Platform::Current()->MainThread()->GetWebTaskRunner();
95 } 96 }
96 97
98 RefPtr<WebTaskRunner> EmptyFrameScheduler::UnthrottledButBlockableTaskRunner() {
99 return Platform::Current()->MainThread()->GetWebTaskRunner();
100 }
101
97 PopupMenu* EmptyChromeClient::OpenPopupMenu(LocalFrame&, HTMLSelectElement&) { 102 PopupMenu* EmptyChromeClient::OpenPopupMenu(LocalFrame&, HTMLSelectElement&) {
98 return new EmptyPopupMenu(); 103 return new EmptyPopupMenu();
99 } 104 }
100 105
101 ColorChooser* EmptyChromeClient::OpenColorChooser(LocalFrame*, 106 ColorChooser* EmptyChromeClient::OpenColorChooser(LocalFrame*,
102 ColorChooserClient*, 107 ColorChooserClient*,
103 const Color&) { 108 const Color&) {
104 return nullptr; 109 return nullptr;
105 } 110 }
106 111
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 211
207 std::unique_ptr<WebApplicationCacheHost> 212 std::unique_ptr<WebApplicationCacheHost>
208 EmptyLocalFrameClient::CreateApplicationCacheHost( 213 EmptyLocalFrameClient::CreateApplicationCacheHost(
209 WebApplicationCacheHostClient*) { 214 WebApplicationCacheHostClient*) {
210 return nullptr; 215 return nullptr;
211 } 216 }
212 217
213 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; 218 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default;
214 219
215 } // namespace blink 220 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp ('k') | third_party/WebKit/Source/platform/WebFrameScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698