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

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

Issue 2393193003: 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 309 }
310 310
311 void WebRuntimeFeatures::enableWebFontsInterventionTrigger(bool enable) { 311 void WebRuntimeFeatures::enableWebFontsInterventionTrigger(bool enable) {
312 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable); 312 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable);
313 } 313 }
314 314
315 void WebRuntimeFeatures::enableRenderingPipelineThrottling(bool enable) { 315 void WebRuntimeFeatures::enableRenderingPipelineThrottling(bool enable) {
316 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable); 316 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable);
317 } 317 }
318 318
319 void WebRuntimeFeatures::enableExpensiveBackgroundTimerThrottling(bool enable) {
320 RuntimeEnabledFeatures::setExpensiveBackgroundTimerThrottlingEnabled(enable);
321 }
322
323 void WebRuntimeFeatures::enableRootLayerScrolling(bool enable) { 319 void WebRuntimeFeatures::enableRootLayerScrolling(bool enable) {
324 RuntimeEnabledFeatures::setRootLayerScrollingEnabled(enable); 320 RuntimeEnabledFeatures::setRootLayerScrollingEnabled(enable);
325 } 321 }
326 322
327 void WebRuntimeFeatures::enableScrollAnchoring(bool enable) { 323 void WebRuntimeFeatures::enableScrollAnchoring(bool enable) {
328 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable); 324 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable);
329 } 325 }
330 326
331 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) { 327 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) {
332 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable); 328 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable);
333 } 329 }
334 330
335 void WebRuntimeFeatures::enableTimerThrottlingForBackgroundTabs(bool enable) { 331 void WebRuntimeFeatures::enableTimerThrottlingForBackgroundTabs(bool enable) {
336 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable); 332 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable);
337 } 333 }
338 334
339 void WebRuntimeFeatures::enableTimerThrottlingForHiddenFrames(bool enable) { 335 void WebRuntimeFeatures::enableTimerThrottlingForHiddenFrames(bool enable) {
340 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 336 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
341 } 337 }
342 338
343 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType( 339 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(
344 bool enable) { 340 bool enable) {
345 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled( 341 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(
346 enable); 342 enable);
347 } 343 }
348 344
349 } // namespace blink 345 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698