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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h

Issue 2826773002: Rename CanvasPathMethods to CanvasPath (Closed)
Patch Set: x Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BaseRenderingContext2D_h 5 #ifndef BaseRenderingContext2D_h
6 #define BaseRenderingContext2D_h 6 #define BaseRenderingContext2D_h
7 7
8 #include "bindings/modules/v8/CSSImageValueOrHTMLImageElementOrSVGImageElementOr HTMLVideoElementOrHTMLCanvasElementOrImageBitmapOrOffscreenCanvas.h" 8 #include "bindings/modules/v8/CSSImageValueOrHTMLImageElementOrSVGImageElementOr HTMLVideoElementOrHTMLCanvasElementOrImageBitmapOrOffscreenCanvas.h"
9 #include "bindings/modules/v8/StringOrCanvasGradientOrCanvasPattern.h" 9 #include "bindings/modules/v8/StringOrCanvasGradientOrCanvasPattern.h"
10 #include "core/html/ImageData.h" 10 #include "core/html/ImageData.h"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "modules/canvas2d/CanvasGradient.h" 12 #include "modules/canvas2d/CanvasGradient.h"
13 #include "modules/canvas2d/CanvasPathMethods.h" 13 #include "modules/canvas2d/CanvasPath.h"
14 #include "modules/canvas2d/CanvasRenderingContext2DState.h" 14 #include "modules/canvas2d/CanvasRenderingContext2DState.h"
15 #include "modules/canvas2d/CanvasStyle.h" 15 #include "modules/canvas2d/CanvasStyle.h"
16 #include "platform/graphics/ColorBehavior.h" 16 #include "platform/graphics/ColorBehavior.h"
17 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" 17 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
18 #include "platform/graphics/paint/PaintCanvas.h" 18 #include "platform/graphics/paint/PaintCanvas.h"
19 #include "third_party/skia/include/effects/SkComposeImageFilter.h" 19 #include "third_party/skia/include/effects/SkComposeImageFilter.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 class CanvasImageSource; 23 class CanvasImageSource;
24 class Color; 24 class Color;
25 class Image; 25 class Image;
26 class ImageBuffer; 26 class ImageBuffer;
27 class Path2D; 27 class Path2D;
28 class SVGMatrixTearOff; 28 class SVGMatrixTearOff;
29 29
30 typedef CSSImageValueOrHTMLImageElementOrSVGImageElementOrHTMLVideoElementOrHTML CanvasElementOrImageBitmapOrOffscreenCanvas 30 typedef CSSImageValueOrHTMLImageElementOrSVGImageElementOrHTMLVideoElementOrHTML CanvasElementOrImageBitmapOrOffscreenCanvas
31 CanvasImageSourceUnion; 31 CanvasImageSourceUnion;
32 32
33 class MODULES_EXPORT BaseRenderingContext2D : public GarbageCollectedMixin, 33 class MODULES_EXPORT BaseRenderingContext2D : public GarbageCollectedMixin,
34 public CanvasPathMethods { 34 public CanvasPath {
35 WTF_MAKE_NONCOPYABLE(BaseRenderingContext2D); 35 WTF_MAKE_NONCOPYABLE(BaseRenderingContext2D);
36 36
37 public: 37 public:
38 ~BaseRenderingContext2D() override; 38 ~BaseRenderingContext2D() override;
39 39
40 void Reset(); 40 void Reset();
41 41
42 void strokeStyle(StringOrCanvasGradientOrCanvasPattern&) const; 42 void strokeStyle(StringOrCanvasGradientOrCanvasPattern&) const;
43 void setStrokeStyle(const StringOrCanvasGradientOrCanvasPattern&); 43 void setStrokeStyle(const StringOrCanvasGradientOrCanvasPattern&);
44 44
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 foreground_flags.setBlendMode(SkBlendMode::kSrcOver); 464 foreground_flags.setBlendMode(SkBlendMode::kSrcOver);
465 c->setMatrix(ctm); 465 c->setMatrix(ctm);
466 draw_func(c, &foreground_flags); 466 draw_func(c, &foreground_flags);
467 c->restore(); 467 c->restore();
468 c->setMatrix(ctm); 468 c->setMatrix(ctm);
469 } 469 }
470 470
471 } // namespace blink 471 } // namespace blink
472 472
473 #endif // BaseRenderingContext2D_h 473 #endif // BaseRenderingContext2D_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/BUILD.gn ('k') | third_party/WebKit/Source/modules/canvas2d/CanvasPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698