1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "config.h"
6#include "ImageFilter.h"
7
8#include "third_party/skia/include/core/SkImageFilter.h"
9
10namespace blink {
11
12FloatRect mapImageFilterRect(ImageFilter* filter, const FloatRect& rect)
13{
14    SkRect dest;
15    filter->computeFastBounds(rect, &dest);
16    return dest;
17}
18
19} // namespace blink
20