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

Unified Diff: cc/output/activation_promise.h

Issue 1126963006: Move VISUAL_STATE promise to activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Current state (presubmit warnings, cc_unittests tests failing) Created 5 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 side-by-side diff with in-line comments
Download patch
Index: cc/output/activation_promise.h
diff --git a/cc/output/activation_promise.h b/cc/output/activation_promise.h
new file mode 100644
index 0000000000000000000000000000000000000000..3235c6fc8a447c2a3280cc0673202f91cb1344b9
--- /dev/null
+++ b/cc/output/activation_promise.h
@@ -0,0 +1,27 @@
+// Copyright 2013 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 CC_OUTPUT_ACTIVATION_PROMISE_H_
+#define CC_OUTPUT_ACTIVATION_PROMISE_H_
+
+#include "cc/output/compositor_frame_metadata.h"
+#include "cc/output/promise.h"
+
+namespace cc {
+
+class CC_EXPORT ActivationPromise : public Promise {
+ public:
+ ActivationPromise() {}
+ ~ActivationPromise() override;
+
+ virtual void DidActivate(CompositorFrameMetadata* metadata) = 0;
+ virtual void DidNotActivate(DidNotActivate::Reason reason) = 0;
+
+ bool OnDidActivate(CompositorFrameMetadata* metadata) final;
+ bool OnDidNotActivate(DidNotActivate::Reason reason) final;
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_ACTIVATION_PROMISE_H_

Powered by Google App Engine
This is Rietveld 408576698