chromium/components/viz/service/display/null_renderer.h

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

#ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_NULL_RENDERER_H_
#define COMPONENTS_VIZ_SERVICE_DISPLAY_NULL_RENDERER_H_

#include <memory>

#include "components/viz/service/display/direct_renderer.h"

namespace viz {

// Empty implementation of the DirectRenderer, used with OutputSurfaceUnified.
// Doesn't support Draw and will crash if Draw of SwapBuffers will be called.
class VIZ_SERVICE_EXPORT NullRenderer : public DirectRenderer {};

}  // namespace viz

#endif  // COMPONENTS_VIZ_SERVICE_DISPLAY_NULL_RENDERER_H_