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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGClipPainter.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 10 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 // 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 #include "core/paint/SVGClipPainter.h" 5 #include "core/paint/SVGClipPainter.h"
6 6
7 #include "core/dom/ElementTraversal.h" 7 #include "core/dom/ElementTraversal.h"
8 #include "core/layout/svg/LayoutSVGResourceClipper.h" 8 #include "core/layout/svg/LayoutSVGResourceClipper.h"
9 #include "core/layout/svg/SVGLayoutSupport.h" 9 #include "core/layout/svg/SVGLayoutSupport.h"
10 #include "core/layout/svg/SVGResources.h" 10 #include "core/layout/svg/SVGResources.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 TransformRecorder contentTransformRecorder(maskContext, layoutObject, 157 TransformRecorder contentTransformRecorder(maskContext, layoutObject,
158 contentTransform); 158 contentTransform);
159 maskContext.getPaintController().createAndAppend<DrawingDisplayItem>( 159 maskContext.getPaintController().createAndAppend<DrawingDisplayItem>(
160 layoutObject, DisplayItem::kSVGClip, m_clip.createContentPicture()); 160 layoutObject, DisplayItem::kSVGClip, m_clip.createContentPicture());
161 } 161 }
162 } 162 }
163 163
164 LayoutObjectDrawingRecorder drawingRecorder( 164 LayoutObjectDrawingRecorder drawingRecorder(
165 context, layoutObject, DisplayItem::kSVGClip, targetVisualRect); 165 context, layoutObject, DisplayItem::kSVGClip, targetVisualRect);
166 sk_sp<SkPicture> maskPicture = maskPictureBuilder.endRecording(); 166 sk_sp<PaintRecord> maskPicture = maskPictureBuilder.endRecording();
167 context.drawPicture(maskPicture.get()); 167 context.drawPicture(maskPicture.get());
168 return true; 168 return true;
169 } 169 }
170 170
171 } // namespace blink 171 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPainter.cpp ('k') | third_party/WebKit/Source/core/paint/SVGImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698