blob: e4a20888ee11c517eefd0f3ac1f892b38388459b [file] [log] [blame]
// Copyright 2014 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/cc_export.h"
namespace gfx {
class BoxF;
} // namespace gfx
namespace cc {
class LayerImpl;
class CC_EXPORT LayerUtils {
// Computes a box in screen space that should entirely contain the layer's
// bounds through the entirety of the layer's current animation. Returns
// true and sets |out| to the inflation if there are animations that can
// inflate bounds in the path to the root layer and that it was able to
// inflate correctly. Returns false otherwise.
static bool GetAnimationBounds(const LayerImpl& layer, gfx::BoxF* out);
} // namespace cc