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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp

Issue 1900423004: [compositorworker] Register compositor proxies with proxy client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 4 years, 6 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
OLDNEW
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/CompositorWorkerThread.h" 5 #include "modules/compositorworker/CompositorWorkerThread.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 "core/dom/CompositorProxyClient.h" 10 #include "core/dom/CompositorProxyClient.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 class TestCompositorProxyClient 62 class TestCompositorProxyClient
63 : public GarbageCollected<TestCompositorProxyClient> 63 : public GarbageCollected<TestCompositorProxyClient>
64 , public CompositorProxyClient { 64 , public CompositorProxyClient {
65 USING_GARBAGE_COLLECTED_MIXIN(TestCompositorProxyClient); 65 USING_GARBAGE_COLLECTED_MIXIN(TestCompositorProxyClient);
66 public: 66 public:
67 TestCompositorProxyClient() {} 67 TestCompositorProxyClient() {}
68 68
69 void setGlobalScope(WorkerGlobalScope*) override {} 69 void setGlobalScope(WorkerGlobalScope*) override {}
70 void requestAnimationFrame() override {} 70 void requestAnimationFrame() override {}
71 void registerCompositorProxy(CompositorProxy*) override {}
72 void unregisterCompositorProxy(CompositorProxy*) override {}
71 }; 73 };
72 74
73 class CompositorWorkerTestPlatform : public TestingPlatformSupport { 75 class CompositorWorkerTestPlatform : public TestingPlatformSupport {
74 public: 76 public:
75 CompositorWorkerTestPlatform() 77 CompositorWorkerTestPlatform()
76 : m_thread(adoptPtr(m_oldPlatform->createThread("Compositor"))) 78 : m_thread(adoptPtr(m_oldPlatform->createThread("Compositor")))
77 { 79 {
78 } 80 }
79 81
80 WebThread* compositorThread() const override 82 WebThread* compositorThread() const override
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 v8::Isolate* secondIsolate = secondWorker->isolate(); 236 v8::Isolate* secondIsolate = secondWorker->isolate();
235 ASSERT_TRUE(secondIsolate); 237 ASSERT_TRUE(secondIsolate);
236 EXPECT_EQ(firstIsolate, secondIsolate); 238 EXPECT_EQ(firstIsolate, secondIsolate);
237 239
238 // Verify that the isolate can run some scripts correctly in the second work er. 240 // Verify that the isolate can run some scripts correctly in the second work er.
239 checkWorkerCanExecuteScript(secondWorker.get()); 241 checkWorkerCanExecuteScript(secondWorker.get());
240 secondWorker->terminateAndWait(); 242 secondWorker->terminateAndWait();
241 } 243 }
242 244
243 } // namespace blink 245 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CompositorProxyClient.h ('k') | third_party/WebKit/Source/web/CompositorProxyClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698