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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 "third_party/skia/include/core/SkCanvas.h" 12 #include "third_party/skia/include/core/SkCanvas.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class CanvasImageSource; 16 class CanvasImageSource;
17 class Color; 17 class Color;
18 18
19 class MODULES_EXPORT PaintRenderingContext2D : public BaseRenderingContext2D, pu blic RefCountedWillBeGarbageCollectedFinalized<PaintRenderingContext2D>, public ScriptWrappable { 19 class MODULES_EXPORT PaintRenderingContext2D : public BaseRenderingContext2D, pu blic GarbageCollectedFinalized<PaintRenderingContext2D>, public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintRenderingContext2D); 21 USING_GARBAGE_COLLECTED_MIXIN(PaintRenderingContext2D);
22 WTF_MAKE_NONCOPYABLE(PaintRenderingContext2D); 22 WTF_MAKE_NONCOPYABLE(PaintRenderingContext2D);
23 USING_FAST_MALLOC_WILL_BE_REMOVED(PaintRenderingContext2D);
24 public: 23 public:
25 static PassRefPtrWillBeRawPtr<PaintRenderingContext2D> create(PassOwnPtr<Ima geBuffer> imageBuffer) 24 static RawPtr<PaintRenderingContext2D> create(PassOwnPtr<ImageBuffer> imageB uffer)
26 { 25 {
27 return adoptRefWillBeNoop(new PaintRenderingContext2D(imageBuffer)); 26 return new PaintRenderingContext2D(imageBuffer);
28 } 27 }
29 28
30 // BaseRenderingContext2D 29 // BaseRenderingContext2D
31 30
32 // PaintRenderingContext2D doesn't have any pixel readback so the origin 31 // PaintRenderingContext2D doesn't have any pixel readback so the origin
33 // is always clean, and unable to taint it. 32 // is always clean, and unable to taint it.
34 bool originClean() const final { return true; } 33 bool originClean() const final { return true; }
35 void setOriginTainted() final { } 34 void setOriginTainted() final { }
36 bool wouldTaintOrigin(CanvasImageSource*) final { return false; } 35 bool wouldTaintOrigin(CanvasImageSource*) final { return false; }
37 36
(...skipping 29 matching lines...) Expand all
67 66
68 private: 67 private:
69 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>); 68 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>);
70 69
71 OwnPtr<ImageBuffer> m_imageBuffer; 70 OwnPtr<ImageBuffer> m_imageBuffer;
72 }; 71 };
73 72
74 } // namespace blink 73 } // namespace blink
75 74
76 #endif // PaintRenderingContext2D_h 75 #endif // PaintRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698