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

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

Issue 609923003: Adding blink side flag that allows disabling YUV decoding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved from WebSettings to WebRuntimeFeatures Created 6 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
« no previous file with comments | « Source/platform/graphics/DecodingImageGenerator.cpp ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool WebRuntimeFeatures::isCompositedSelectionUpdateEnabled() 68 bool WebRuntimeFeatures::isCompositedSelectionUpdateEnabled()
69 { 69 {
70 return RuntimeEnabledFeatures::compositedSelectionUpdateEnabled(); 70 return RuntimeEnabledFeatures::compositedSelectionUpdateEnabled();
71 } 71 }
72 72
73 void WebRuntimeFeatures::enableDatabase(bool enable) 73 void WebRuntimeFeatures::enableDatabase(bool enable)
74 { 74 {
75 RuntimeEnabledFeatures::setDatabaseEnabled(enable); 75 RuntimeEnabledFeatures::setDatabaseEnabled(enable);
76 } 76 }
77 77
78 void WebRuntimeFeatures::enableDecodeToYUV(bool enable)
79 {
80 RuntimeEnabledFeatures::setDecodeToYUVEnabled(enable);
81 }
82
78 void WebRuntimeFeatures::enableDisplayList2dCanvas(bool enable) 83 void WebRuntimeFeatures::enableDisplayList2dCanvas(bool enable)
79 { 84 {
80 RuntimeEnabledFeatures::setDisplayList2dCanvasEnabled(enable); 85 RuntimeEnabledFeatures::setDisplayList2dCanvasEnabled(enable);
81 } 86 }
82 87
83 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) 88 void WebRuntimeFeatures::enableEncryptedMedia(bool enable)
84 { 89 {
85 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); 90 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable);
86 // FIXME: Hack to allow MediaKeyError to be enabled for either version. 91 // FIXME: Hack to allow MediaKeyError to be enabled for either version.
87 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( 92 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled(
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 { 287 {
283 RuntimeEnabledFeatures::setShowModalDialogEnabled(enable); 288 RuntimeEnabledFeatures::setShowModalDialogEnabled(enable);
284 } 289 }
285 290
286 void WebRuntimeFeatures::enableLaxMixedContentChecking(bool enable) 291 void WebRuntimeFeatures::enableLaxMixedContentChecking(bool enable)
287 { 292 {
288 RuntimeEnabledFeatures::setLaxMixedContentCheckingEnabled(enable); 293 RuntimeEnabledFeatures::setLaxMixedContentCheckingEnabled(enable);
289 } 294 }
290 295
291 } // namespace blink 296 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/DecodingImageGenerator.cpp ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698