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

Side by Side Diff: third_party/WebKit/Source/core/dom/CompositorProxyClient.cpp

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add big fat TODOs in scheduler code to implement proper idle task scheduling and ensure GC is runniā€¦ Created 4 years, 7 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
haraken 2016/05/06 02:45:50 2016
flackr 2016/05/06 18:15:07 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/dom/CompositorProxyClient.h"
6
7 #include "platform/TraceEvent.h"
8
9 namespace blink {
10
11 CompositorProxyClient* CompositorProxyClient::from(WorkerClients* clients)
12 {
13 TRACE_EVENT0("compositor-worker", "CompositorProxyClient::from");
haraken 2016/05/06 02:45:50 Does this performance really matter? Supplement::f
flackr 2016/05/06 18:15:07 Agreed, this should be fine. Removed.
14 return static_cast<CompositorProxyClient*>(Supplement<WorkerClients>::from(c lients, supplementName()));
15 }
16
17 const char* CompositorProxyClient::supplementName()
18 {
19 return "CompositorProxyClient";
20 }
21
22 void provideCompositorProxyClientTo(WorkerClients* clients, CompositorProxyClien t* client)
23 {
24 TRACE_EVENT0("compositor-worker", "provideCompositorProxyClientTo");
haraken 2016/05/06 02:45:50 Ditto. This should happen only once, so it wouldn'
flackr 2016/05/06 18:15:07 Removed.
25 clients->provideSupplement(CompositorProxyClient::supplementName(), client);
26 }
27
28 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698