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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months 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 /** 1 /**
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 15 matching lines...) Expand all
26 #define SVGPaintContext_h 26 #define SVGPaintContext_h
27 27
28 #include "core/layout/svg/LayoutSVGResourceClipper.h" 28 #include "core/layout/svg/LayoutSVGResourceClipper.h"
29 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" 29 #include "core/layout/svg/LayoutSVGResourcePaintServer.h"
30 #include "core/paint/PaintInfo.h" 30 #include "core/paint/PaintInfo.h"
31 #include "core/paint/SVGClipPainter.h" 31 #include "core/paint/SVGClipPainter.h"
32 #include "core/paint/SVGFilterPainter.h" 32 #include "core/paint/SVGFilterPainter.h"
33 #include "platform/graphics/paint/ClipPathRecorder.h" 33 #include "platform/graphics/paint/ClipPathRecorder.h"
34 #include "platform/graphics/paint/CompositingRecorder.h" 34 #include "platform/graphics/paint/CompositingRecorder.h"
35 #include "platform/transforms/AffineTransform.h" 35 #include "platform/transforms/AffineTransform.h"
36 #include <memory>
36 37
37 namespace blink { 38 namespace blink {
38 39
39 class LayoutObject; 40 class LayoutObject;
40 class LayoutSVGResourceFilter; 41 class LayoutSVGResourceFilter;
41 class LayoutSVGResourceMasker; 42 class LayoutSVGResourceMasker;
42 class SVGResources; 43 class SVGResources;
43 44
44 class SVGPaintContext { 45 class SVGPaintContext {
45 STACK_ALLOCATED(); 46 STACK_ALLOCATED();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Return true if no masking is necessary or if the mask is successfully app lied. 79 // Return true if no masking is necessary or if the mask is successfully app lied.
79 bool applyMaskIfNecessary(SVGResources*); 80 bool applyMaskIfNecessary(SVGResources*);
80 81
81 // Return true if no filtering is necessary or if the filter is successfully applied. 82 // Return true if no filtering is necessary or if the filter is successfully applied.
82 bool applyFilterIfNecessary(SVGResources*); 83 bool applyFilterIfNecessary(SVGResources*);
83 84
84 bool isIsolationInstalled() const; 85 bool isIsolationInstalled() const;
85 86
86 const LayoutObject& m_object; 87 const LayoutObject& m_object;
87 PaintInfo m_paintInfo; 88 PaintInfo m_paintInfo;
88 OwnPtr<PaintInfo> m_filterPaintInfo; 89 std::unique_ptr<PaintInfo> m_filterPaintInfo;
89 LayoutSVGResourceFilter* m_filter; 90 LayoutSVGResourceFilter* m_filter;
90 LayoutSVGResourceClipper* m_clipper; 91 LayoutSVGResourceClipper* m_clipper;
91 SVGClipPainter::ClipperState m_clipperState; 92 SVGClipPainter::ClipperState m_clipperState;
92 LayoutSVGResourceMasker* m_masker; 93 LayoutSVGResourceMasker* m_masker;
93 OwnPtr<CompositingRecorder> m_compositingRecorder; 94 std::unique_ptr<CompositingRecorder> m_compositingRecorder;
94 OwnPtr<ClipPathRecorder> m_clipPathRecorder; 95 std::unique_ptr<ClipPathRecorder> m_clipPathRecorder;
95 OwnPtr<SVGFilterRecordingContext> m_filterRecordingContext; 96 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext;
96 #if ENABLE(ASSERT) 97 #if ENABLE(ASSERT)
97 bool m_applyClipMaskAndFilterIfNecessaryCalled; 98 bool m_applyClipMaskAndFilterIfNecessaryCalled;
98 #endif 99 #endif
99 }; 100 };
100 101
101 } // namespace blink 102 } // namespace blink
102 103
103 #endif // SVGPaintContext_h 104 #endif // SVGPaintContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698