| 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_
|
|
|