OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 BLINK_EXPORT bool layoutTestMode(); | 59 BLINK_EXPORT bool layoutTestMode(); |
60 | 60 |
61 // Enables or disables the use of the mock theme for layout tests. This function | 61 // Enables or disables the use of the mock theme for layout tests. This function |
62 // must be called only if setLayoutTestMode(true). | 62 // must be called only if setLayoutTestMode(true). |
63 BLINK_EXPORT void setMockThemeEnabledForTest(bool); | 63 BLINK_EXPORT void setMockThemeEnabledForTest(bool); |
64 | 64 |
65 // Alters the rendering of fonts for layout tests. | 65 // Alters the rendering of fonts for layout tests. |
66 BLINK_EXPORT void setFontAntialiasingEnabledForTest(bool); | 66 BLINK_EXPORT void setFontAntialiasingEnabledForTest(bool); |
67 BLINK_EXPORT bool fontAntialiasingEnabledForTest(); | 67 BLINK_EXPORT bool fontAntialiasingEnabledForTest(); |
68 | 68 |
69 // Forces the use of the complex text path for layout tests. | |
70 BLINK_EXPORT void setAlwaysUseComplexTextForTest(bool); | |
71 BLINK_EXPORT bool alwaysUseComplexTextForTest(); | |
72 | |
73 // Purge the plugin list cache. If |reloadPages| is true, any pages | 69 // Purge the plugin list cache. If |reloadPages| is true, any pages |
74 // containing plugins will be reloaded after refreshing the plugin list. | 70 // containing plugins will be reloaded after refreshing the plugin list. |
75 BLINK_EXPORT void resetPluginCache(bool reloadPages = false); | 71 BLINK_EXPORT void resetPluginCache(bool reloadPages = false); |
76 | 72 |
77 // The embedder should call this periodically in an attempt to balance overall | 73 // The embedder should call this periodically in an attempt to balance overall |
78 // performance and memory usage. | 74 // performance and memory usage. |
79 BLINK_EXPORT void decommitFreeableMemory(); | 75 BLINK_EXPORT void decommitFreeableMemory(); |
80 | 76 |
81 // Send memory pressure notification to worker thread isolate. | 77 // Send memory pressure notification to worker thread isolate. |
82 BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates( | 78 BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates( |
83 v8::MemoryPressureLevel); | 79 v8::MemoryPressureLevel); |
84 | 80 |
85 // Set the RAIL performance mode on all worker thread isolates. | 81 // Set the RAIL performance mode on all worker thread isolates. |
86 BLINK_EXPORT void setRAILModeOnWorkerThreadIsolates(v8::RAILMode); | 82 BLINK_EXPORT void setRAILModeOnWorkerThreadIsolates(v8::RAILMode); |
87 | 83 |
88 } // namespace blink | 84 } // namespace blink |
89 | 85 |
90 #endif | 86 #endif |
OLD | NEW |