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

Side by Side Diff: third_party/WebKit/public/web/WebKit.h

Issue 2093983002: scheduler: Tell v8 about the current RAIL mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing gyp dependencies Created 4 years, 5 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 | « third_party/WebKit/Source/web/WebKit.cpp ('k') | no next file » | 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) 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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebKit_h 31 #ifndef WebKit_h
32 #define WebKit_h 32 #define WebKit_h
33 33
34 #include "../platform/Platform.h" 34 #include "../platform/Platform.h"
35 35 #include <v8.h>
36 namespace v8 {
37 class Isolate;
38 enum class MemoryPressureLevel;
39 }
40 36
41 namespace blink { 37 namespace blink {
42 38
43 // Initialize the entire Blink (wtf, platform, core, modules and web). 39 // Initialize the entire Blink (wtf, platform, core, modules and web).
44 // If you just need wtf and platform, use Platform::initialize instead. 40 // If you just need wtf and platform, use Platform::initialize instead.
45 // 41 //
46 // Must be called on the thread that will be the main thread before 42 // Must be called on the thread that will be the main thread before
47 // using any other public APIs. The provided Platform; must be 43 // using any other public APIs. The provided Platform; must be
48 // non-null and must remain valid until the current thread calls shutdown. 44 // non-null and must remain valid until the current thread calls shutdown.
49 BLINK_EXPORT void initialize(Platform*); 45 BLINK_EXPORT void initialize(Platform*);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 BLINK_EXPORT void resetPluginCache(bool reloadPages = false); 78 BLINK_EXPORT void resetPluginCache(bool reloadPages = false);
83 79
84 // The embedder should call this periodically in an attempt to balance overall 80 // The embedder should call this periodically in an attempt to balance overall
85 // performance and memory usage. 81 // performance and memory usage.
86 BLINK_EXPORT void decommitFreeableMemory(); 82 BLINK_EXPORT void decommitFreeableMemory();
87 83
88 // Send memory pressure notification to worker thread isolate. 84 // Send memory pressure notification to worker thread isolate.
89 BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates( 85 BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates(
90 v8::MemoryPressureLevel); 86 v8::MemoryPressureLevel);
91 87
88 // Set the RAIL performance mode on all worker thread isolates.
89 BLINK_EXPORT void setRAILModeOnWorkerThreadIsolates(v8::RAILMode);
90
92 } // namespace blink 91 } // namespace blink
93 92
94 #endif 93 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebKit.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698