chromium/third_party/blink/renderer/platform/graphics/filters/filter_effect.cc

/*
 * Copyright (C) 2008 Alex Mathews <[email protected]>
 * Copyright (C) 2009 Dirk Schulze <[email protected]>
 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
 * Copyright (C) 2012 University of Szeged
 * Copyright (C) 2013 Google Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/platform/graphics/filters/filter_effect.h"

#include "base/types/optional_util.h"
#include "third_party/blink/renderer/platform/graphics/filters/filter.h"
#include "third_party/skia/include/core/SkColorFilter.h"
#include "ui/gfx/geometry/skia_conversions.h"

namespace blink {

FilterEffect::FilterEffect(Filter* filter)
    :{}

FilterEffect::~FilterEffect() = default;

void FilterEffect::Trace(Visitor* visitor) const {}

gfx::RectF FilterEffect::AbsoluteBounds() const {}

gfx::RectF FilterEffect::MapInputs(const gfx::RectF& rect) const {}

gfx::RectF FilterEffect::MapEffect(const gfx::RectF& rect) const {}

gfx::RectF FilterEffect::ApplyBounds(const gfx::RectF& rect) const {}

gfx::RectF FilterEffect::MapRect(const gfx::RectF& rect) const {}

FilterEffect* FilterEffect::InputEffect(unsigned number) const {}

void FilterEffect::DisposeImageFilters() {}

void FilterEffect::DisposeImageFiltersRecursive() {}

Color FilterEffect::AdaptColorToOperatingInterpolationSpace(
    const Color& device_color) {}

WTF::TextStream& FilterEffect::ExternalRepresentation(WTF::TextStream& ts,
                                                      int) const {}

sk_sp<PaintFilter> FilterEffect::CreateImageFilter() {}

sk_sp<PaintFilter> FilterEffect::CreateImageFilterWithoutValidation() {}

bool FilterEffect::InputsTaintOrigin() const {}

sk_sp<PaintFilter> FilterEffect::CreateTransparentBlack() const {}

std::optional<PaintFilter::CropRect> FilterEffect::GetCropRect() const {}

static int GetImageFilterIndex(InterpolationSpace interpolation_space,
                               bool requires_pm_color_validation) {}

PaintFilter* FilterEffect::GetImageFilter(
    InterpolationSpace interpolation_space,
    bool requires_pm_color_validation) const {}

void FilterEffect::SetImageFilter(InterpolationSpace interpolation_space,
                                  bool requires_pm_color_validation,
                                  sk_sp<PaintFilter> image_filter) {}

}  // namespace blink