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

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

Issue 71153006: Expose DirectWrite RuntimeEnabledFeature to WebRuntimeFeatures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( 127 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled(
128 RuntimeEnabledFeatures::encryptedMediaEnabled() 128 RuntimeEnabledFeatures::encryptedMediaEnabled()
129 || RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled()); 129 || RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled());
130 } 130 }
131 131
132 bool WebRuntimeFeatures::isPrefixedEncryptedMediaEnabled() 132 bool WebRuntimeFeatures::isPrefixedEncryptedMediaEnabled()
133 { 133 {
134 return RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled(); 134 return RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled();
135 } 135 }
136 136
137 void WebRuntimeFeatures::enableDirectWrite(bool enable)
138 {
139 RuntimeEnabledFeatures::setDirectWriteEnabled(enable);
140 }
141
142 bool WebRuntimeFeatures::isDirectWriteEnabled()
143 {
144 return RuntimeEnabledFeatures::directWriteEnabled();
145 }
146
137 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable) 147 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable)
138 { 148 {
139 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable); 149 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable);
140 } 150 }
141 151
142 bool WebRuntimeFeatures::isExperimentalCanvasFeaturesEnabled() 152 bool WebRuntimeFeatures::isExperimentalCanvasFeaturesEnabled()
143 { 153 {
144 return RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled(); 154 return RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled();
145 } 155 }
146 156
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 { 450 {
441 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); 451 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable);
442 } 452 }
443 453
444 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable) 454 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable)
445 { 455 {
446 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable); 456 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable);
447 } 457 }
448 458
449 } // namespace blink 459 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698