#include "third_party/blink/renderer/platform/graphics/scoped_raster_timer.h"
#include "base/metrics/histogram_macros.h"
#include "base/rand_util.h"
#include "gpu/GLES2/gl2extchromium.h"
namespace blink {
ScopedRasterTimer::ScopedRasterTimer(
gpu::raster::RasterInterface* raster_interface,
Host& host,
bool always_measure_for_testing)
: … { … }
ScopedRasterTimer::~ScopedRasterTimer() { … }
ScopedRasterTimer::AsyncGpuRasterTimer::AsyncGpuRasterTimer(
gpu::raster::RasterInterface& raster_interface) { … }
void ScopedRasterTimer::AsyncGpuRasterTimer::FinishedIssuingCommands(
gpu::raster::RasterInterface& raster_interface,
base::TimeDelta cpu_raster_duration) { … }
bool ScopedRasterTimer::AsyncGpuRasterTimer::CheckTimer(
gpu::raster::RasterInterface& raster_interface) { … }
void ScopedRasterTimer::Host::CheckGpuTimers(
gpu::raster::RasterInterface* raster_interface) { … }
void ScopedRasterTimer::Host::AddGpuTimer(
std::unique_ptr<AsyncGpuRasterTimer> timer) { … }
}