1 // Copyright 2015 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.
5 #ifndef NinePieceImagePainter_h
6 #define NinePieceImagePainter_h
8 #include "platform/heap/Heap.h"
9 #include "third_party/skia/include/core/SkXfermode.h"
14 class GraphicsContext
;
15 class LayoutBoxModelObject
;
19 class NinePieceImagePainter
{
22 NinePieceImagePainter(LayoutBoxModelObject
&);
24 bool paint(GraphicsContext
*, const LayoutRect
&, const ComputedStyle
&, const NinePieceImage
&, SkXfermode::Mode
) const;
27 LayoutBoxModelObject
& m_layoutObject
;
32 #endif // NinePieceImagePainter_h