| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/compositorworker/AnimationWorkletThread.h" | 5 #include "modules/compositorworker/AnimationWorkletThread.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptSourceCode.h" | 7 #include "bindings/core/v8/ScriptSourceCode.h" |
| 8 #include "bindings/core/v8/SourceLocation.h" | 8 #include "bindings/core/v8/SourceLocation.h" |
| 9 #include "bindings/core/v8/V8GCController.h" | 9 #include "bindings/core/v8/V8GCController.h" |
| 10 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" | 10 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // A null WorkerReportingProxy, supplied when creating AnimationWorkletThreads. | 33 // A null WorkerReportingProxy, supplied when creating AnimationWorkletThreads. |
| 34 class TestAnimationWorkletReportingProxy : public WorkerReportingProxy { | 34 class TestAnimationWorkletReportingProxy : public WorkerReportingProxy { |
| 35 public: | 35 public: |
| 36 static std::unique_ptr<TestAnimationWorkletReportingProxy> create() { | 36 static std::unique_ptr<TestAnimationWorkletReportingProxy> create() { |
| 37 return wrapUnique(new TestAnimationWorkletReportingProxy()); | 37 return wrapUnique(new TestAnimationWorkletReportingProxy()); |
| 38 } | 38 } |
| 39 | 39 |
| 40 // (Empty) WorkerReportingProxy implementation: | 40 // (Empty) WorkerReportingProxy implementation: |
| 41 void countFeature(UseCounter::Feature) override {} |
| 42 void countDeprecation(UseCounter::Feature) override {} |
| 41 void reportException(const String& errorMessage, | 43 void reportException(const String& errorMessage, |
| 42 std::unique_ptr<SourceLocation>, | 44 std::unique_ptr<SourceLocation>, |
| 43 int exceptionId) override {} | 45 int exceptionId) override {} |
| 44 void reportConsoleMessage(MessageSource, | 46 void reportConsoleMessage(MessageSource, |
| 45 MessageLevel, | 47 MessageLevel, |
| 46 const String& message, | 48 const String& message, |
| 47 SourceLocation*) override {} | 49 SourceLocation*) override {} |
| 48 void postMessageToPageInspector(const String&) override {} | 50 void postMessageToPageInspector(const String&) override {} |
| 49 ParentFrameTaskRunners* getParentFrameTaskRunners() override { | 51 ParentFrameTaskRunners* getParentFrameTaskRunners() override { |
| 50 return m_parentFrameTaskRunners.get(); | 52 return m_parentFrameTaskRunners.get(); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 ASSERT_TRUE(secondIsolate); | 220 ASSERT_TRUE(secondIsolate); |
| 219 EXPECT_EQ(firstIsolate, secondIsolate); | 221 EXPECT_EQ(firstIsolate, secondIsolate); |
| 220 | 222 |
| 221 // Verify that the isolate can run some scripts correctly in the second | 223 // Verify that the isolate can run some scripts correctly in the second |
| 222 // worklet. | 224 // worklet. |
| 223 checkWorkletCanExecuteScript(secondWorklet.get()); | 225 checkWorkletCanExecuteScript(secondWorklet.get()); |
| 224 secondWorklet->terminateAndWait(); | 226 secondWorklet->terminateAndWait(); |
| 225 } | 227 } |
| 226 | 228 |
| 227 } // namespace blink | 229 } // namespace blink |
| OLD | NEW |