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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "wtf/text/AtomicString.h" | 64 #include "wtf/text/AtomicString.h" |
65 #include "wtf/text/TextEncoding.h" | 65 #include "wtf/text/TextEncoding.h" |
66 #include <v8.h> | 66 #include <v8.h> |
67 | 67 |
68 namespace blink { | 68 namespace blink { |
69 | 69 |
70 namespace { | 70 namespace { |
71 | 71 |
72 class EndOfTaskRunner : public WebThread::TaskObserver { | 72 class EndOfTaskRunner : public WebThread::TaskObserver { |
73 public: | 73 public: |
74 virtual void willProcessTask() override | 74 void willProcessTask() override |
75 { | 75 { |
76 AnimationClock::notifyTaskStart(); | 76 AnimationClock::notifyTaskStart(); |
77 } | 77 } |
78 virtual void didProcessTask() override | 78 void didProcessTask() override |
79 { | 79 { |
80 Microtask::performCheckpoint(mainThreadIsolate()); | 80 Microtask::performCheckpoint(mainThreadIsolate()); |
81 V8GCController::reportDOMMemoryUsageToV8(mainThreadIsolate()); | 81 V8GCController::reportDOMMemoryUsageToV8(mainThreadIsolate()); |
82 V8Initializer::reportRejectedPromisesOnMainThread(); | 82 V8Initializer::reportRejectedPromisesOnMainThread(); |
83 } | 83 } |
84 }; | 84 }; |
85 | 85 |
86 class MainThreadTaskRunner: public WebThread::Task { | 86 class MainThreadTaskRunner: public WebThread::Task { |
87 WTF_MAKE_NONCOPYABLE(MainThreadTaskRunner); | 87 WTF_MAKE_NONCOPYABLE(MainThreadTaskRunner); |
88 public: | 88 public: |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 ASSERT(!reloadPages); | 294 ASSERT(!reloadPages); |
295 Page::refreshPlugins(); | 295 Page::refreshPlugins(); |
296 } | 296 } |
297 | 297 |
298 void decommitFreeableMemory() | 298 void decommitFreeableMemory() |
299 { | 299 { |
300 WTF::Partitions::decommitFreeableMemory(); | 300 WTF::Partitions::decommitFreeableMemory(); |
301 } | 301 } |
302 | 302 |
303 } // namespace blink | 303 } // namespace blink |
OLD | NEW |