blob: c06f17c9dcd680b90e0db7ed5e5506d06a9b5658 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/surfaces/sequence_surface_reference_factory.h"
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include "cc/surfaces/surface_sequence.h"
namespace cc {
base::Closure SequenceSurfaceReferenceFactory::CreateReference(
SurfaceReferenceOwner* owner,
const SurfaceId& surface_id) const {
auto seq = owner->GetSurfaceSequenceGenerator()->CreateSurfaceSequence();
RequireSequence(surface_id, seq);
return base::Bind(&SequenceSurfaceReferenceFactory::SatisfySequence, this,
} // namespace cc