chromium/ui/gfx/nine_image_painter.cc

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

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

#include "ui/gfx/nine_image_painter.h"

#include <stddef.h>

#include <limits>

#include "base/numerics/safe_conversions.h"
#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkRect.h"
#include "third_party/skia/include/core/SkScalar.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/image/image_skia_operations.h"
#include "ui/gfx/image/image_skia_rep.h"
#include "ui/gfx/scoped_canvas.h"

namespace gfx {

namespace {

int ImageRepWidthInPixels(const ImageSkiaRep& rep) {}

int ImageRepHeightInPixels(const ImageSkiaRep& rep) {}

void Fill(Canvas* c,
          const ImageSkiaRep& rep,
          int x,
          int y,
          int w,
          int h,
          const cc::PaintFlags& flags) {}

}  // namespace

NineImagePainter::NineImagePainter(const std::vector<ImageSkia>& images) {}

NineImagePainter::NineImagePainter(const ImageSkia& image,
                                   const Insets& insets) {}

NineImagePainter::~NineImagePainter() {}

bool NineImagePainter::IsEmpty() const {}

Size NineImagePainter::GetMinimumSize() const {}

void NineImagePainter::Paint(Canvas* canvas, const Rect& bounds) {}

void NineImagePainter::Paint(Canvas* canvas,
                             const Rect& bounds,
                             const uint8_t alpha) {}

// static
void NineImagePainter::GetSubsetRegions(const ImageSkia& image,
                                        const Insets& insets,
                                        std::vector<Rect>* regions) {}

}  // namespace gfx