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

Side by Side Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.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, 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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 class SkCanvas; 36 class SkCanvas;
37 37
38 namespace blink { class WebLayer; } 38 namespace blink { class WebLayer; }
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class CanvasImageSource; 42 class CanvasImageSource;
43 class HTMLCanvasElement; 43 class HTMLCanvasElement;
44 class ImageData; 44 class ImageData;
45 45
46 class CORE_EXPORT CanvasRenderingContext : public NoBaseWillBeGarbageCollectedFi nalized<CanvasRenderingContext>, public ScriptWrappable { 46 class CORE_EXPORT CanvasRenderingContext : public GarbageCollectedFinalized<Canv asRenderingContext>, public ScriptWrappable {
47 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext); 47 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext);
48 USING_FAST_MALLOC_WILL_BE_REMOVED(CanvasRenderingContext);
49 public: 48 public:
50 virtual ~CanvasRenderingContext() { } 49 virtual ~CanvasRenderingContext() { }
51 50
52 // A Canvas can either be "2D" or "webgl" but never both. If you request a 2 D canvas and the existing 51 // A Canvas can either be "2D" or "webgl" but never both. If you request a 2 D canvas and the existing
53 // context is already 2D, just return that. If the existing context is WebGL , then destroy it 52 // context is already 2D, just return that. If the existing context is WebGL , then destroy it
54 // before creating a new 2D context. Vice versa when requesting a WebGL canv as. Requesting a 53 // before creating a new 2D context. Vice versa when requesting a WebGL canv as. Requesting a
55 // context with any other type string will destroy any existing context. 54 // context with any other type string will destroy any existing context.
56 enum ContextType { 55 enum ContextType {
57 // Do not change assigned numbers of existing items: add new features to the end of the list. 56 // Do not change assigned numbers of existing items: add new features to the end of the list.
58 Context2d = 0, 57 Context2d = 0,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 bool wouldTaintOrigin(CanvasImageSource*); 118 bool wouldTaintOrigin(CanvasImageSource*);
120 void didMoveToNewDocument(Document*); 119 void didMoveToNewDocument(Document*);
121 120
122 protected: 121 protected:
123 CanvasRenderingContext(HTMLCanvasElement*); 122 CanvasRenderingContext(HTMLCanvasElement*);
124 DECLARE_VIRTUAL_TRACE(); 123 DECLARE_VIRTUAL_TRACE();
125 124
126 virtual void stop() = 0; 125 virtual void stop() = 0;
127 126
128 private: 127 private:
129 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; 128 Member<HTMLCanvasElement> m_canvas;
130 HashSet<String> m_cleanURLs; 129 HashSet<String> m_cleanURLs;
131 HashSet<String> m_dirtyURLs; 130 HashSet<String> m_dirtyURLs;
132 }; 131 };
133 132
134 } // namespace blink 133 } // namespace blink
135 134
136 #endif 135 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698