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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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 // 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 "modules/canvas2d/CanvasRenderingContext2DState.h" 5 #include "modules/canvas2d/CanvasRenderingContext2DState.h"
6 6
7 #include <memory>
7 #include "core/css/CSSFontSelector.h" 8 #include "core/css/CSSFontSelector.h"
8 #include "core/css/resolver/FilterOperationResolver.h" 9 #include "core/css/resolver/FilterOperationResolver.h"
9 #include "core/css/resolver/StyleBuilder.h" 10 #include "core/css/resolver/StyleBuilder.h"
10 #include "core/css/resolver/StyleResolverState.h" 11 #include "core/css/resolver/StyleResolverState.h"
11 #include "core/html/HTMLCanvasElement.h" 12 #include "core/html/HTMLCanvasElement.h"
12 #include "core/paint/FilterEffectBuilder.h" 13 #include "core/paint/FilterEffectBuilder.h"
13 #include "core/style/ComputedStyle.h" 14 #include "core/style/ComputedStyle.h"
14 #include "core/style/FilterOperation.h" 15 #include "core/style/FilterOperation.h"
15 #include "core/svg/SVGFilterElement.h" 16 #include "core/svg/SVGFilterElement.h"
16 #include "modules/canvas2d/CanvasGradient.h" 17 #include "modules/canvas2d/CanvasGradient.h"
17 #include "modules/canvas2d/CanvasPattern.h" 18 #include "modules/canvas2d/CanvasPattern.h"
18 #include "modules/canvas2d/CanvasRenderingContext2D.h" 19 #include "modules/canvas2d/CanvasRenderingContext2D.h"
19 #include "modules/canvas2d/CanvasStyle.h" 20 #include "modules/canvas2d/CanvasStyle.h"
20 #include "platform/graphics/DrawLooperBuilder.h" 21 #include "platform/graphics/DrawLooperBuilder.h"
21 #include "platform/graphics/filters/FilterEffect.h" 22 #include "platform/graphics/filters/FilterEffect.h"
22 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" 23 #include "platform/graphics/filters/SkiaImageFilterBuilder.h"
23 #include "platform/graphics/paint/PaintCanvas.h" 24 #include "platform/graphics/paint/PaintCanvas.h"
24 #include "platform/graphics/paint/PaintFlags.h" 25 #include "platform/graphics/paint/PaintFlags.h"
25 #include "platform/graphics/skia/SkiaUtils.h" 26 #include "platform/graphics/skia/SkiaUtils.h"
26 #include "third_party/skia/include/effects/SkDashPathEffect.h" 27 #include "third_party/skia/include/effects/SkDashPathEffect.h"
27 #include "third_party/skia/include/effects/SkDropShadowImageFilter.h" 28 #include "third_party/skia/include/effects/SkDropShadowImageFilter.h"
28 #include <memory>
29 29
30 static const char defaultFont[] = "10px sans-serif"; 30 static const char defaultFont[] = "10px sans-serif";
31 static const char defaultFilter[] = "none"; 31 static const char defaultFilter[] = "none";
32 32
33 namespace blink { 33 namespace blink {
34 34
35 CanvasRenderingContext2DState::CanvasRenderingContext2DState() 35 CanvasRenderingContext2DState::CanvasRenderingContext2DState()
36 : unrealized_save_count_(0), 36 : unrealized_save_count_(0),
37 stroke_style_(CanvasStyle::CreateFromRGBA(SK_ColorBLACK)), 37 stroke_style_(CanvasStyle::CreateFromRGBA(SK_ColorBLACK)),
38 fill_style_(CanvasStyle::CreateFromRGBA(SK_ColorBLACK)), 38 fill_style_(CanvasStyle::CreateFromRGBA(SK_ColorBLACK)),
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 flags->setLooper(0); 598 flags->setLooper(0);
599 flags->setImageFilter(ShadowAndForegroundImageFilter()); 599 flags->setImageFilter(ShadowAndForegroundImageFilter());
600 return flags; 600 return flags;
601 } 601 }
602 flags->setLooper(sk_ref_sp(ShadowAndForegroundDrawLooper())); 602 flags->setLooper(sk_ref_sp(ShadowAndForegroundDrawLooper()));
603 flags->setImageFilter(0); 603 flags->setImageFilter(0);
604 return flags; 604 return flags;
605 } 605 }
606 606
607 } // namespace blink 607 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698