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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 127 } |
128 | 128 |
129 void setFontAntialiasingEnabledForTest(bool value) { | 129 void setFontAntialiasingEnabledForTest(bool value) { |
130 LayoutTestSupport::setFontAntialiasingEnabledForTest(value); | 130 LayoutTestSupport::setFontAntialiasingEnabledForTest(value); |
131 } | 131 } |
132 | 132 |
133 bool fontAntialiasingEnabledForTest() { | 133 bool fontAntialiasingEnabledForTest() { |
134 return LayoutTestSupport::isFontAntialiasingEnabledForTest(); | 134 return LayoutTestSupport::isFontAntialiasingEnabledForTest(); |
135 } | 135 } |
136 | 136 |
137 void setAlwaysUseComplexTextForTest(bool value) { | |
138 LayoutTestSupport::setAlwaysUseComplexTextForTest(value); | |
139 } | |
140 | |
141 bool alwaysUseComplexTextForTest() { | |
142 return LayoutTestSupport::alwaysUseComplexTextForTest(); | |
143 } | |
144 | |
145 void resetPluginCache(bool reloadPages) { | 137 void resetPluginCache(bool reloadPages) { |
146 DCHECK(!reloadPages); | 138 DCHECK(!reloadPages); |
147 Page::refreshPlugins(); | 139 Page::refreshPlugins(); |
148 } | 140 } |
149 | 141 |
150 void decommitFreeableMemory() { | 142 void decommitFreeableMemory() { |
151 WTF::Partitions::decommitFreeableMemory(); | 143 WTF::Partitions::decommitFreeableMemory(); |
152 } | 144 } |
153 | 145 |
154 void MemoryPressureNotificationToWorkerThreadIsolates( | 146 void MemoryPressureNotificationToWorkerThreadIsolates( |
155 v8::MemoryPressureLevel level) { | 147 v8::MemoryPressureLevel level) { |
156 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); | 148 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); |
157 } | 149 } |
158 | 150 |
159 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { | 151 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { |
160 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); | 152 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); |
161 } | 153 } |
162 | 154 |
163 } // namespace blink | 155 } // namespace blink |
OLD | NEW |