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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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/SVGMaskPainter.h" 5 #include "core/paint/SVGMaskPainter.h"
6 6
7 #include "core/layout/svg/LayoutSVGResourceMasker.h" 7 #include "core/layout/svg/LayoutSVGResourceMasker.h"
8 #include "core/paint/LayoutObjectDrawingRecorder.h" 8 #include "core/paint/LayoutObjectDrawingRecorder.h"
9 #include "core/paint/PaintInfo.h" 9 #include "core/paint/PaintInfo.h"
10 #include "core/paint/TransformRecorder.h" 10 #include "core/paint/TransformRecorder.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 context.getPaintController().endItem<EndCompositingDisplayItem>(object); 51 context.getPaintController().endItem<EndCompositingDisplayItem>(object);
52 } 52 }
53 53
54 void SVGMaskPainter::drawMaskForLayoutObject( 54 void SVGMaskPainter::drawMaskForLayoutObject(
55 GraphicsContext& context, 55 GraphicsContext& context,
56 const LayoutObject& layoutObject, 56 const LayoutObject& layoutObject,
57 const FloatRect& targetBoundingBox, 57 const FloatRect& targetBoundingBox,
58 const FloatRect& targetVisualRect) { 58 const FloatRect& targetVisualRect) {
59 AffineTransform contentTransformation; 59 AffineTransform contentTransformation;
60 sk_sp<const SkPicture> maskContentPicture = m_mask.createContentPicture( 60 sk_sp<const PaintRecord> maskContentPicture = m_mask.createContentPicture(
61 contentTransformation, targetBoundingBox, context); 61 contentTransformation, targetBoundingBox, context);
62 62
63 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible( 63 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(
64 context, layoutObject, DisplayItem::kSVGMask)) 64 context, layoutObject, DisplayItem::kSVGMask))
65 return; 65 return;
66 66
67 LayoutObjectDrawingRecorder drawingRecorder( 67 LayoutObjectDrawingRecorder drawingRecorder(
68 context, layoutObject, DisplayItem::kSVGMask, targetVisualRect); 68 context, layoutObject, DisplayItem::kSVGMask, targetVisualRect);
69 context.save(); 69 context.save();
70 context.concatCTM(contentTransformation); 70 context.concatCTM(contentTransformation);
71 context.drawPicture(maskContentPicture.get()); 71 context.drawPicture(maskContentPicture.get());
72 context.restore(); 72 context.restore();
73 } 73 }
74 74
75 } // namespace blink 75 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698