OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 #include "wtf/HashSet.h" | 31 #include "wtf/HashSet.h" |
32 #include "wtf/Noncopyable.h" | 32 #include "wtf/Noncopyable.h" |
33 #include "wtf/text/StringHash.h" | 33 #include "wtf/text/StringHash.h" |
34 | 34 |
35 namespace blink { class WebLayer; } | 35 namespace blink { class WebLayer; } |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class CanvasImageSource; | 39 class CanvasImageSource; |
40 class HTMLCanvasElement; | 40 class HTMLCanvasElement; |
41 class KURL; | |
42 class WebGLObject; | |
43 | 41 |
44 class CanvasRenderingContext : public NoBaseWillBeGarbageCollectedFinalized<Canv
asRenderingContext> { | 42 class CanvasRenderingContext : public NoBaseWillBeGarbageCollectedFinalized<Canv
asRenderingContext> { |
45 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext); | 43 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext); |
46 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
47 public: | 45 public: |
48 virtual ~CanvasRenderingContext() { } | 46 virtual ~CanvasRenderingContext() { } |
49 | 47 |
50 #if !ENABLE(OILPAN) | 48 #if !ENABLE(OILPAN) |
51 void ref() { m_canvas->ref(); } | 49 void ref() { m_canvas->ref(); } |
52 void deref() { m_canvas->deref(); } | 50 void deref() { m_canvas->deref(); } |
(...skipping 20 matching lines...) Expand all Loading... |
73 | 71 |
74 private: | 72 private: |
75 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; | 73 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; |
76 HashSet<String> m_cleanURLs; | 74 HashSet<String> m_cleanURLs; |
77 HashSet<String> m_dirtyURLs; | 75 HashSet<String> m_dirtyURLs; |
78 }; | 76 }; |
79 | 77 |
80 } // namespace blink | 78 } // namespace blink |
81 | 79 |
82 #endif | 80 #endif |
OLD | NEW |