Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: third_party/WebKit/Source/core/paint/NinePieceImagePainter.h

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NinePieceImagePainter_h 5 #ifndef NinePieceImagePainter_h
6 #define NinePieceImagePainter_h 6 #define NinePieceImagePainter_h
7 7
8 #include "platform/heap/Heap.h" 8 #include "platform/heap/Heap.h"
9 #include "third_party/skia/include/core/SkXfermode.h" 9 #include "third_party/skia/include/core/SkXfermode.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class ComputedStyle; 13 class ComputedStyle;
14 class GraphicsContext; 14 class GraphicsContext;
15 class LayoutBoxModelObject; 15 class LayoutBoxModelObject;
16 class LayoutRect; 16 class LayoutRect;
17 class NinePieceImage; 17 class NinePieceImage;
18 18
19 class NinePieceImagePainter { 19 class NinePieceImagePainter {
20 STACK_ALLOCATED(); 20 STACK_ALLOCATED();
21 public: 21 public:
22 NinePieceImagePainter(const LayoutBoxModelObject&); 22 NinePieceImagePainter(const LayoutBoxModelObject&);
23 23
24 bool paint(GraphicsContext*, const LayoutRect&, const ComputedStyle&, const NinePieceImage&, SkXfermode::Mode) const; 24 bool paint(GraphicsContext&, const LayoutRect&, const ComputedStyle&, const NinePieceImage&, SkXfermode::Mode) const;
25 25
26 private: 26 private:
27 const LayoutBoxModelObject& m_layoutObject; 27 const LayoutBoxModelObject& m_layoutObject;
28 }; 28 };
29 29
30 } // namespace blink 30 } // namespace blink
31 31
32 #endif // NinePieceImagePainter_h 32 #endif // NinePieceImagePainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698