chromium/third_party/blink/renderer/platform/graphics/scoped_raster_timer.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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
//========================================

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) {}

// ScopedRasterTimer::Host
//=========================

void ScopedRasterTimer::Host::CheckGpuTimers(
    gpu::raster::RasterInterface* raster_interface) {}

void ScopedRasterTimer::Host::AddGpuTimer(
    std::unique_ptr<AsyncGpuRasterTimer> timer) {}

}  // namespace blink