#ifndef COMPONENTS_VIZ_TEST_TEST_SURFACE_ID_ALLOCATOR_H_
#define COMPONENTS_VIZ_TEST_TEST_SURFACE_ID_ALLOCATOR_H_
#include "components/viz/common/surfaces/frame_sink_id.h"
#include "components/viz/common/surfaces/local_surface_id.h"
#include "components/viz/common/surfaces/surface_id.h"
namespace viz {
class TestSurfaceIdAllocator {
public:
explicit TestSurfaceIdAllocator(const FrameSinkId& frame_sink_id);
const FrameSinkId& frame_sink_id() const {
return surface_id_.frame_sink_id();
}
const LocalSurfaceId& local_surface_id() const {
return surface_id_.local_surface_id();
}
const SurfaceId& Get() const { return surface_id_; }
operator SurfaceId() const { return surface_id_; }
void Increment();
private:
SurfaceId surface_id_;
};
}
#endif