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

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

Issue 2289183005: [WeakMemoryCache] Cleanup Field-Trial code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void WebRuntimeFeatures::enableDisplayList2dCanvas(bool enable) 118 void WebRuntimeFeatures::enableDisplayList2dCanvas(bool enable)
119 { 119 {
120 RuntimeEnabledFeatures::setDisplayList2dCanvasEnabled(enable); 120 RuntimeEnabledFeatures::setDisplayList2dCanvasEnabled(enable);
121 } 121 }
122 122
123 void WebRuntimeFeatures::enableCanvas2dDynamicRenderingModeSwitching(bool enable ) 123 void WebRuntimeFeatures::enableCanvas2dDynamicRenderingModeSwitching(bool enable )
124 { 124 {
125 RuntimeEnabledFeatures::setEnableCanvas2dDynamicRenderingModeSwitchingEnable d(enable); 125 RuntimeEnabledFeatures::setEnableCanvas2dDynamicRenderingModeSwitchingEnable d(enable);
126 } 126 }
127 127
128 void WebRuntimeFeatures::enableDoNotUnlockSharedBuffer(bool enable)
129 {
130 RuntimeEnabledFeatures::setDoNotUnlockSharedBufferEnabled(enable);
131 }
132
133 void WebRuntimeFeatures::enableDocumentWriteEvaluator(bool enable) 128 void WebRuntimeFeatures::enableDocumentWriteEvaluator(bool enable)
134 { 129 {
135 RuntimeEnabledFeatures::setDocumentWriteEvaluatorEnabled(enable); 130 RuntimeEnabledFeatures::setDocumentWriteEvaluatorEnabled(enable);
136 } 131 }
137 132
138 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable) 133 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable)
139 { 134 {
140 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable); 135 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable);
141 } 136 }
142 137
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 void WebRuntimeFeatures::enablePushMessaging(bool enable) 323 void WebRuntimeFeatures::enablePushMessaging(bool enable)
329 { 324 {
330 RuntimeEnabledFeatures::setPushMessagingEnabled(enable); 325 RuntimeEnabledFeatures::setPushMessagingEnabled(enable);
331 } 326 }
332 327
333 void WebRuntimeFeatures::enableUnsafeES3APIs(bool enable) 328 void WebRuntimeFeatures::enableUnsafeES3APIs(bool enable)
334 { 329 {
335 RuntimeEnabledFeatures::setUnsafeES3APIsEnabled(enable); 330 RuntimeEnabledFeatures::setUnsafeES3APIsEnabled(enable);
336 } 331 }
337 332
338 void WebRuntimeFeatures::enableWeakMemoryCache(bool enable)
339 {
340 RuntimeEnabledFeatures::setWeakMemoryCacheEnabled(enable);
341 }
342
343 void WebRuntimeFeatures::enableWebVR(bool enable) 333 void WebRuntimeFeatures::enableWebVR(bool enable)
344 { 334 {
345 RuntimeEnabledFeatures::setWebVREnabled(enable); 335 RuntimeEnabledFeatures::setWebVREnabled(enable);
346 } 336 }
347 337
348 void WebRuntimeFeatures::enableNewMediaPlaybackUi(bool enable) 338 void WebRuntimeFeatures::enableNewMediaPlaybackUi(bool enable)
349 { 339 {
350 RuntimeEnabledFeatures::setNewMediaPlaybackUiEnabled(enable); 340 RuntimeEnabledFeatures::setNewMediaPlaybackUiEnabled(enable);
351 } 341 }
352 342
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 { 389 {
400 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 390 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
401 } 391 }
402 392
403 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le) 393 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le)
404 { 394 {
405 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able); 395 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able);
406 } 396 }
407 397
408 } // namespace blink 398 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698