Home | History | Annotate | Download | only in core

Lines Matching defs:new

79      *  Create a new dataref by copying the specified data
84 * Create a new data with uninitialized contents. The caller should call writable_data()
90 * Create a new dataref by copying the specified c-string
98 * Create a new dataref, taking the data ptr as is, and using the
112 * Create a new dataref from a pointer allocated by malloc. The Data object
118 * Create a new dataref the file with the specified path.
124 * Create a new dataref from a SkFILE.
133 * Create a new dataref from a file descriptor.
149 * Create a new dataref using a subset of the data in the specified
155 * Returns a new empty dataref (or a reference to a shared empty dataref).
156 * New or shared, the caller must see that unref() is eventually called.
168 SkData(size_t size); // inplace new/delete
173 // therefore must be sk_freed. We overload new to also call sk_malloc_throw so that memory
175 // new means we must also overload placement new.
176 void* operator new(size_t size) { return sk_malloc_throw(size); }
177 void* operator new(size_t, void* p) { return p; }