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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGClipPainter.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 SVGClipPainter_h 5 #ifndef SVGClipPainter_h
6 #define SVGClipPainter_h 6 #define SVGClipPainter_h
7 7
8 #include "platform/geometry/FloatRect.h" 8 #include "platform/geometry/FloatRect.h"
9 #include "platform/graphics/paint/DisplayItemClient.h" 9 #include "platform/graphics/paint/DisplayItemClient.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 11 matching lines...) Expand all
22 ClipperNotApplied, 22 ClipperNotApplied,
23 ClipperAppliedPath, 23 ClipperAppliedPath,
24 ClipperAppliedMask 24 ClipperAppliedMask
25 }; 25 };
26 26
27 SVGClipPainter(LayoutSVGResourceClipper& clip) : m_clip(clip) { } 27 SVGClipPainter(LayoutSVGResourceClipper& clip) : m_clip(clip) { }
28 28
29 // FIXME: Filters are also stateful resources that could benefit from having their state managed 29 // FIXME: Filters are also stateful resources that could benefit from having their state managed
30 // on the caller stack instead of the current hashmap. We should look at refactoring these 30 // on the caller stack instead of the current hashmap. We should look at refactoring these
31 // into a general interface that can be shared. 31 // into a general interface that can be shared.
32 bool prepareEffect(const LayoutObject&, const FloatRect&, const FloatRect&, GraphicsContext*, ClipperState&); 32 bool prepareEffect(const LayoutObject&, const FloatRect&, const FloatRect&, GraphicsContext&, ClipperState&);
33 void finishEffect(const LayoutObject&, GraphicsContext*, ClipperState&); 33 void finishEffect(const LayoutObject&, GraphicsContext&, ClipperState&);
34 34
35 private: 35 private:
36 void drawClipMaskContent(GraphicsContext*, const LayoutObject&, const FloatR ect& targetBoundingBox, const FloatRect& targetPaintInvalidationRect); 36 void drawClipMaskContent(GraphicsContext&, const LayoutObject&, const FloatR ect& targetBoundingBox, const FloatRect& targetPaintInvalidationRect);
37 37
38 LayoutSVGResourceClipper& m_clip; 38 LayoutSVGResourceClipper& m_clip;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // SVGClipPainter_h 43 #endif // SVGClipPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698