Skip to content

Commit

Permalink
Add flag for bleeding-edge Silk features in Blink.
Browse files Browse the repository at this point in the history
BUG=

Review URL: https://codereview.chromium.org/171003006

git-svn-id: svn://svn.chromium.org/blink/trunk@167556 bbb929c8-8fbe-4397-9dbb-9b2b20218538
  • Loading branch information
chrishtr@chromium.org committed Feb 21, 2014
1 parent 5ee0602 commit d151b6d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
ApplicationCache status=stable
AuthorShadowDOMForAnyElement
BeforeLoad status=test

// Enable bleeding-edge code to make Blink draw content faster.
// The changes enabled behind this flag are very likely to break lots of content.
// ** DO NOT use this flag unless you know what you are doing. **
BleedingEdgeFastPaths

ClientHintsDpr status=experimental
Crypto status=experimental
CSSAnimationUnprefixed status=experimental
Expand Down
5 changes: 5 additions & 0 deletions third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ void WebRuntimeFeatures::enableExperimentalFeatures(bool enable)
RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable);
}

void WebRuntimeFeatures::enableBleedingEdgeFastPaths(bool enable)
{
RuntimeEnabledFeatures::setBleedingEdgeFastPathsEnabled(enable);
}

void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable)
{
RuntimeEnabledFeatures::setTestFeaturesEnabled(enable);
Expand Down
2 changes: 2 additions & 0 deletions third_party/WebKit/public/web/WebRuntimeFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class WebRuntimeFeatures {
BLINK_EXPORT static void enablePrefixedEncryptedMedia(bool);
BLINK_EXPORT static bool isPrefixedEncryptedMediaEnabled();

BLINK_EXPORT static void enableBleedingEdgeFastPaths(bool);

BLINK_EXPORT static void enableDirectWrite(bool);

BLINK_EXPORT static void enableExperimentalCanvasFeatures(bool);
Expand Down

0 comments on commit d151b6d

Please sign in to comment.