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 17 matching lines...) Expand all Loading... |
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 #include "config.h" | 31 #include "config.h" |
32 #include "public/web/WebKit.h" | 32 #include "public/web/WebKit.h" |
33 | 33 |
34 #include "RuntimeEnabledFeatures.h" | 34 #include "RuntimeEnabledFeatures.h" |
35 #include "bindings/v8/V8Binding.h" | 35 #include "bindings/v8/V8Binding.h" |
36 #include "bindings/v8/V8Initializer.h" | 36 #include "bindings/v8/V8Initializer.h" |
37 #include "core/Init.h" | 37 #include "core/Init.h" |
| 38 #include "core/animation/AnimationClock.h" |
38 #include "core/dom/Microtask.h" | 39 #include "core/dom/Microtask.h" |
39 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
40 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
41 #include "core/workers/WorkerGlobalScopeProxy.h" | 42 #include "core/workers/WorkerGlobalScopeProxy.h" |
42 #include "gin/public/v8_platform.h" | 43 #include "gin/public/v8_platform.h" |
43 #include "modules/InitModules.h" | 44 #include "modules/InitModules.h" |
44 #include "platform/LayoutTestSupport.h" | 45 #include "platform/LayoutTestSupport.h" |
45 #include "platform/Logging.h" | 46 #include "platform/Logging.h" |
46 #include "platform/graphics/ImageDecodingStore.h" | 47 #include "platform/graphics/ImageDecodingStore.h" |
47 #include "platform/graphics/media/MediaPlayer.h" | 48 #include "platform/graphics/media/MediaPlayer.h" |
(...skipping 12 matching lines...) Expand all Loading... |
60 #include "wtf/text/AtomicString.h" | 61 #include "wtf/text/AtomicString.h" |
61 #include "wtf/text/TextEncoding.h" | 62 #include "wtf/text/TextEncoding.h" |
62 #include <v8.h> | 63 #include <v8.h> |
63 | 64 |
64 namespace blink { | 65 namespace blink { |
65 | 66 |
66 namespace { | 67 namespace { |
67 | 68 |
68 class EndOfTaskRunner : public WebThread::TaskObserver { | 69 class EndOfTaskRunner : public WebThread::TaskObserver { |
69 public: | 70 public: |
70 virtual void willProcessTask() { } | 71 virtual void willProcessTask() OVERRIDE |
71 virtual void didProcessTask() | 72 { |
| 73 WebCore::AnimationClock::notifyTaskStart(); |
| 74 } |
| 75 virtual void didProcessTask() OVERRIDE |
72 { | 76 { |
73 WebCore::Microtask::performCheckpoint(); | 77 WebCore::Microtask::performCheckpoint(); |
74 } | 78 } |
75 }; | 79 }; |
76 | 80 |
77 } // namespace | 81 } // namespace |
78 | 82 |
79 static WebThread::TaskObserver* s_endOfTaskRunner = 0; | 83 static WebThread::TaskObserver* s_endOfTaskRunner = 0; |
80 static WebThread::TaskObserver* s_pendingGCRunner = 0; | 84 static WebThread::TaskObserver* s_pendingGCRunner = 0; |
81 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0; | 85 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 channel->state = WTFLogChannelOn; | 264 channel->state = WTFLogChannelOn; |
261 #endif // !LOG_DISABLED | 265 #endif // !LOG_DISABLED |
262 } | 266 } |
263 | 267 |
264 void resetPluginCache(bool reloadPages) | 268 void resetPluginCache(bool reloadPages) |
265 { | 269 { |
266 WebCore::Page::refreshPlugins(reloadPages); | 270 WebCore::Page::refreshPlugins(reloadPages); |
267 } | 271 } |
268 | 272 |
269 } // namespace blink | 273 } // namespace blink |
OLD | NEW |