chromium/pdf/draw_utils/shadow.h

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

#ifndef PDF_DRAW_UTILS_SHADOW_H_
#define PDF_DRAW_UTILS_SHADOW_H_

#include <stdint.h>

#include <vector>

class SkBitmap;

namespace gfx {
class Rect;
}  // namespace gfx

namespace chrome_pdf {
namespace draw_utils {

// Shadow Matrix contains matrix for shadow rendering. To reduce amount of
// calculations user may choose to cache matrix and reuse it if nothing changed.
class ShadowMatrix {};

// Draw shadow on the image using provided ShadowMatrix.
// shadow_rc - rectangle occupied by shadow
// object_rc - rectangle that drops the shadow
// clip_rc - clipping region
void DrawShadow(SkBitmap& image,
                const gfx::Rect& shadow_rc,
                const gfx::Rect& object_rc,
                const gfx::Rect& clip_rc,
                const ShadowMatrix& matrix);

}  // namespace draw_utils
}  // namespace chrome_pdf

#endif  // PDF_DRAW_UTILS_SHADOW_H_