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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutator.h

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: Bring up oilpan support during compositor worker creation and oilpan the compositor mutator and pro… Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/CompositorMutator.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutator.h b/third_party/WebKit/Source/platform/graphics/CompositorMutator.h
new file mode 100644
index 0000000000000000000000000000000000000000..df4c21af5bf9a1711d4eec22be8048fa518b2dfc
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutator.h
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CompositorMutator_h
+#define CompositorMutator_h
+
+#include "platform/heap/Handle.h"
+#include "wtf/RefCounted.h"
+
+namespace blink {
+
+class CompositorMutator : public GarbageCollectedFinalized<CompositorMutator> {
jbroman 2016/04/29 19:42:22 If this is an interface (it seems to be), it shoul
flackr 2016/05/03 22:24:54 Done.
haraken 2016/05/09 01:37:05 Hmm, I don't fully understand this comment. What p
jbroman 2016/05/19 18:50:05 CompositorMutator is a pure virtual base class (i.
haraken 2016/05/19 23:55:51 Because GarbageCollectedMixin adds (some complicat
jbroman 2016/05/20 00:06:52 OK. I do see now that https://chromium.googlesourc
+public:
+ virtual ~CompositorMutator() {}
+
+ DEFINE_INLINE_VIRTUAL_TRACE() {}
+
+ // Called from compositor thread which does not participate in GC cycle
jbroman 2016/04/29 19:42:22 What does this comment mean? Also, a brief comment
flackr 2016/05/03 22:24:54 Sorry, this comment is way out of date, updated.
+ virtual bool mutate(double monotonicTimeNow) = 0;
+};
+
+} // namespace blink
+
+#endif // CompositorMutator_h

Powered by Google App Engine
This is Rietveld 408576698