chromium/third_party/blink/renderer/platform/graphics/paint/ignore_paint_timing_scope.h

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

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_PAINT_IGNORE_PAINT_TIMING_SCOPE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_PAINT_IGNORE_PAINT_TIMING_SCOPE_H_

#include "base/auto_reset.h"
#include "third_party/blink/renderer/platform/platform_export.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"

namespace blink {

// Creates a scope to ignore paint timing, e.g. when we are painting contents
// under opacity:0. Currently we store the largest content when the depth is 1
// in order to surface the LCP when the document's opacity changes from 0 to
// nonzero. Care must be taken if changing the conditions under which
// IgnorePaintTimingScope is used in order to ensure correctness.
class PLATFORM_EXPORT IgnorePaintTimingScope {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_PAINT_IGNORE_PAINT_TIMING_SCOPE_H_