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

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

Issue 2723093004: Adds SVGImageElement as a CanvasImageSource (Closed)
Patch Set: Moved from circle to rect, to avoid aliasing Created 3 years, 9 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/CSSImageValueOrHTMLImageElementOrHTMLVideoElementO rHTMLCanvasElementOrImageBitmapOrOffscreenCanvas.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/CanvasPathMethods.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 CSSImageValueOrHTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrIm ageBitmapOrOffscreenCanvas 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 CanvasPathMethods {
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();
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 foregroundFlags.setBlendMode(SkBlendMode::kSrcOver); 468 foregroundFlags.setBlendMode(SkBlendMode::kSrcOver);
469 c->setMatrix(ctm); 469 c->setMatrix(ctm);
470 drawFunc(c, &foregroundFlags); 470 drawFunc(c, &foregroundFlags);
471 c->restore(); 471 c->restore();
472 c->setMatrix(ctm); 472 c->setMatrix(ctm);
473 } 473 }
474 474
475 } // namespace blink 475 } // namespace blink
476 476
477 #endif // BaseRenderingContext2D_h 477 #endif // BaseRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698