#include "base/compiler_specific.h"
#include "cc/base/swap_promise_monitor.h"
#ifndef CC_BASE_LATENCY_INFO_SWAP_PROMISE_MONITOR_H_
#define CC_BASE_LATENCY_INFO_SWAP_PROMISE_MONITOR_H_
namespace ui {
struct LatencyInfo;
}
namespace cc {
class CC_EXPORT LatencyInfoSwapPromiseMonitor : public SwapPromiseMonitor {
public:
LatencyInfoSwapPromiseMonitor(ui::LatencyInfo* latency,
LayerTreeHost* layer_tree_host,
LayerTreeHostImpl* layer_tree_host_impl);
virtual ~LatencyInfoSwapPromiseMonitor();
virtual void OnSetNeedsCommitOnMain() OVERRIDE;
virtual void OnSetNeedsRedrawOnImpl() OVERRIDE;
private:
ui::LatencyInfo* latency_;
};
}
#endif