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

Side by Side Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2409653003: [Merge to 2883] Revert "[scheduler] Throttle background frames with 1% CPU limit" (Closed)
Patch Set: Created 4 years, 2 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 305 }
306 306
307 void WebRuntimeFeatures::enableWebFontsInterventionTrigger(bool enable) { 307 void WebRuntimeFeatures::enableWebFontsInterventionTrigger(bool enable) {
308 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable); 308 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable);
309 } 309 }
310 310
311 void WebRuntimeFeatures::enableRenderingPipelineThrottling(bool enable) { 311 void WebRuntimeFeatures::enableRenderingPipelineThrottling(bool enable) {
312 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable); 312 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable);
313 } 313 }
314 314
315 void WebRuntimeFeatures::enableExpensiveBackgroundTimerThrottling(bool enable) {
316 RuntimeEnabledFeatures::setExpensiveBackgroundTimerThrottlingEnabled(enable);
317 }
318
319 void WebRuntimeFeatures::enableRootLayerScrolling(bool enable) { 315 void WebRuntimeFeatures::enableRootLayerScrolling(bool enable) {
320 RuntimeEnabledFeatures::setRootLayerScrollingEnabled(enable); 316 RuntimeEnabledFeatures::setRootLayerScrollingEnabled(enable);
321 } 317 }
322 318
323 void WebRuntimeFeatures::enableScrollAnchoring(bool enable) { 319 void WebRuntimeFeatures::enableScrollAnchoring(bool enable) {
324 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable); 320 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable);
325 } 321 }
326 322
327 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) { 323 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) {
328 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable); 324 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable);
329 } 325 }
330 326
331 void WebRuntimeFeatures::enableTimerThrottlingForBackgroundTabs(bool enable) { 327 void WebRuntimeFeatures::enableTimerThrottlingForBackgroundTabs(bool enable) {
332 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable); 328 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable);
333 } 329 }
334 330
335 void WebRuntimeFeatures::enableTimerThrottlingForHiddenFrames(bool enable) { 331 void WebRuntimeFeatures::enableTimerThrottlingForHiddenFrames(bool enable) {
336 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 332 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
337 } 333 }
338 334
339 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType( 335 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(
340 bool enable) { 336 bool enable) {
341 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled( 337 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(
342 enable); 338 enable);
343 } 339 }
344 340
345 } // namespace blink 341 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698