1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21

content / browser / renderer_host / scoped_view_transition_resources.cc [blame]

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

#include "content/browser/renderer_host/scoped_view_transition_resources.h"

#include "components/viz/host/host_frame_sink_manager.h"
#include "content/browser/compositor/surface_utils.h"

namespace content {

ScopedViewTransitionResources::ScopedViewTransitionResources(
    const blink::ViewTransitionToken& transition_token)
    : transition_token_(transition_token) {}

ScopedViewTransitionResources::~ScopedViewTransitionResources() {
  GetHostFrameSinkManager()->ClearUnclaimedViewTransitionResources(
      transition_token_);
}

}  // namespace content