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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h

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 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 PaintRenderingContext2D_h 5 #ifndef PaintRenderingContext2D_h
6 #define PaintRenderingContext2D_h 6 #define PaintRenderingContext2D_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/canvas2d/BaseRenderingContext2D.h" 10 #include "modules/canvas2d/BaseRenderingContext2D.h"
11 #include "platform/graphics/ImageBuffer.h" 11 #include "platform/graphics/ImageBuffer.h"
12 #include <memory> 12 #include <memory>
13 13
14 class SkCanvas;
15
16 namespace blink { 14 namespace blink {
17 15
18 class CanvasImageSource; 16 class CanvasImageSource;
19 class Color; 17 class Color;
20 18
21 class MODULES_EXPORT PaintRenderingContext2D 19 class MODULES_EXPORT PaintRenderingContext2D
22 : public BaseRenderingContext2D, 20 : public BaseRenderingContext2D,
23 public GarbageCollectedFinalized<PaintRenderingContext2D>, 21 public GarbageCollectedFinalized<PaintRenderingContext2D>,
24 public ScriptWrappable { 22 public ScriptWrappable {
25 DEFINE_WRAPPERTYPEINFO(); 23 DEFINE_WRAPPERTYPEINFO();
(...skipping 17 matching lines...) Expand all
43 } 41 }
44 42
45 int width() const final; 43 int width() const final;
46 int height() const final; 44 int height() const final;
47 45
48 bool hasImageBuffer() const final { return m_imageBuffer.get(); } 46 bool hasImageBuffer() const final { return m_imageBuffer.get(); }
49 ImageBuffer* imageBuffer() const final { return m_imageBuffer.get(); } 47 ImageBuffer* imageBuffer() const final { return m_imageBuffer.get(); }
50 48
51 bool parseColorOrCurrentColor(Color&, const String& colorString) const final; 49 bool parseColorOrCurrentColor(Color&, const String& colorString) const final;
52 50
53 SkCanvas* drawingCanvas() const final; 51 PaintCanvas* drawingCanvas() const final;
54 SkCanvas* existingDrawingCanvas() const final; 52 PaintCanvas* existingDrawingCanvas() const final;
55 void disableDeferral(DisableDeferralReason) final {} 53 void disableDeferral(DisableDeferralReason) final {}
56 54
57 AffineTransform baseTransform() const final; 55 AffineTransform baseTransform() const final;
58 56
59 void didDraw(const SkIRect& dirtyRect) final; 57 void didDraw(const SkIRect& dirtyRect) final;
60 58
61 ColorBehavior drawImageColorBehavior() const final; 59 ColorBehavior drawImageColorBehavior() const final;
62 60
63 // TODO(ikilpatrick): We'll need to either only accept resolved filters 61 // TODO(ikilpatrick): We'll need to either only accept resolved filters
64 // from a typed-om <filter> object, or use the appropriate style resolution 62 // from a typed-om <filter> object, or use the appropriate style resolution
(...skipping 15 matching lines...) Expand all
80 bool hasAlpha, 78 bool hasAlpha,
81 float zoom); 79 float zoom);
82 80
83 std::unique_ptr<ImageBuffer> m_imageBuffer; 81 std::unique_ptr<ImageBuffer> m_imageBuffer;
84 bool m_hasAlpha; 82 bool m_hasAlpha;
85 }; 83 };
86 84
87 } // namespace blink 85 } // namespace blink
88 86
89 #endif // PaintRenderingContext2D_h 87 #endif // PaintRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698