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

Side by Side Diff: Source/core/imagebitmap/ImageBitmapFactories.h

Issue 1321723004: Make classes and structures in core/xml, core/input, core/imagebitmap and core/Init fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/Init.h ('k') | Source/core/input/EventHandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class Blob; 46 class Blob;
47 class EventTarget; 47 class EventTarget;
48 class ExceptionState; 48 class ExceptionState;
49 class ImageBitmap; 49 class ImageBitmap;
50 class ImageData; 50 class ImageData;
51 class ExecutionContext; 51 class ExecutionContext;
52 52
53 class ImageBitmapFactories final : public NoBaseWillBeGarbageCollectedFinalized< ImageBitmapFactories>, public WillBeHeapSupplement<LocalDOMWindow>, public WillB eHeapSupplement<WorkerGlobalScope> { 53 class ImageBitmapFactories final : public NoBaseWillBeGarbageCollectedFinalized< ImageBitmapFactories>, public WillBeHeapSupplement<LocalDOMWindow>, public WillB eHeapSupplement<WorkerGlobalScope> {
54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories); 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmapFactories);
55 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ImageBitmapFactories);
55 56
56 public: 57 public:
57 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, Ex ceptionState&); 58 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, Ex ceptionState&);
58 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, in t sx, int sy, int sw, int sh, ExceptionState&); 59 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, Blob*, in t sx, int sy, int sw, int sh, ExceptionState&);
59 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData *, ExceptionState&); 60 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData *, ExceptionState&);
60 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData *, int sx, int sy, int sw, int sh, ExceptionState&); 61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageData *, int sx, int sy, int sw, int sh, ExceptionState&);
61 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm ap*, ExceptionState&); 62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm ap*, ExceptionState&);
62 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm ap*, int sx, int sy, int sw, int sh, ExceptionState&); 63 static ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitm ap*, int sx, int sy, int sw, int sh, ExceptionState&);
63 64
64 virtual ~ImageBitmapFactories() { } 65 virtual ~ImageBitmapFactories() { }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 108
108 void addLoader(ImageBitmapLoader*); 109 void addLoader(ImageBitmapLoader*);
109 void didFinishLoading(ImageBitmapLoader*); 110 void didFinishLoading(ImageBitmapLoader*);
110 111
111 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader>> m_pendingL oaders; 112 PersistentHeapHashSetWillBeHeapHashSet<Member<ImageBitmapLoader>> m_pendingL oaders;
112 }; 113 };
113 114
114 } // namespace blink 115 } // namespace blink
115 116
116 #endif // ImageBitmapFactories_h 117 #endif // ImageBitmapFactories_h
OLDNEW
« no previous file with comments | « Source/core/Init.h ('k') | Source/core/input/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698