Index: cc/base/latency_info_swap_promise.h |
diff --git a/cc/base/latency_info_swap_promise.h b/cc/base/latency_info_swap_promise.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1a2b1d6b206a35132c1fc47e6b5198ad1fcdd829 |
--- /dev/null |
+++ b/cc/base/latency_info_swap_promise.h |
@@ -0,0 +1,28 @@ |
+// 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_BASE_LATENCY_INFO_SWAP_PROMISE_H_ |
+#define CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ |
+ |
+#include "base/compiler_specific.h" |
+#include "cc/base/swap_promise.h" |
+#include "ui/events/latency_info.h" |
+ |
+namespace cc { |
+ |
+class CC_EXPORT LatencyInfoSwapPromise : public SwapPromise { |
+ public: |
+ explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info); |
+ virtual ~LatencyInfoSwapPromise(); |
+ |
+ virtual void DidSwap(CompositorFrameMetadata* metadata) OVERRIDE; |
+ virtual void DidNotSwap(DidNotSwapReason reason) OVERRIDE; |
+ |
+ private: |
+ ui::LatencyInfo latency_; |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ |