• Home
  • Raw
  • Download

Lines Matching refs:copy

93 SkiaShader* SkiaBitmapShader::copy() {  in copy()  function in android::uirenderer::SkiaBitmapShader
94 SkiaBitmapShader* copy = new SkiaBitmapShader(); in copy() local
95 copy->copyFrom(*this); in copy()
96 copy->mBitmap = mBitmap; in copy()
97 return copy; in copy()
199 SkiaShader* SkiaLinearGradientShader::copy() { in copy() function in android::uirenderer::SkiaLinearGradientShader
200 SkiaLinearGradientShader* copy = new SkiaLinearGradientShader(); in copy() local
201 copy->copyFrom(*this); in copy()
202 copy->mBounds = new float[4]; in copy()
203 memcpy(copy->mBounds, mBounds, sizeof(float) * 4); in copy()
204 copy->mColors = new uint32_t[mCount]; in copy()
205 memcpy(copy->mColors, mColors, sizeof(uint32_t) * mCount); in copy()
206 copy->mPositions = new float[mCount]; in copy()
207 memcpy(copy->mPositions, mPositions, sizeof(float) * mCount); in copy()
208 copy->mCount = mCount; in copy()
209 return copy; in copy()
264 SkiaShader* SkiaCircularGradientShader::copy() { in copy() function in android::uirenderer::SkiaCircularGradientShader
265 SkiaCircularGradientShader* copy = new SkiaCircularGradientShader(); in copy() local
266 copy->copyFrom(*this); in copy()
267 copy->mColors = new uint32_t[mCount]; in copy()
268 memcpy(copy->mColors, mColors, sizeof(uint32_t) * mCount); in copy()
269 copy->mPositions = new float[mCount]; in copy()
270 memcpy(copy->mPositions, mPositions, sizeof(float) * mCount); in copy()
271 copy->mCount = mCount; in copy()
272 return copy; in copy()
313 SkiaShader* SkiaSweepGradientShader::copy() { in copy() function in android::uirenderer::SkiaSweepGradientShader
314 SkiaSweepGradientShader* copy = new SkiaSweepGradientShader(); in copy() local
315 copy->copyFrom(*this); in copy()
316 copy->mColors = new uint32_t[mCount]; in copy()
317 memcpy(copy->mColors, mColors, sizeof(uint32_t) * mCount); in copy()
318 copy->mPositions = new float[mCount]; in copy()
319 memcpy(copy->mPositions, mPositions, sizeof(float) * mCount); in copy()
320 copy->mCount = mCount; in copy()
321 return copy; in copy()
371 SkiaShader* SkiaComposeShader::copy() { in copy() function in android::uirenderer::SkiaComposeShader
372 SkiaComposeShader* copy = new SkiaComposeShader(); in copy() local
373 copy->copyFrom(*this); in copy()
374 copy->mFirst = mFirst->copy(); in copy()
375 copy->mSecond = mSecond->copy(); in copy()
376 copy->mMode = mMode; in copy()
377 copy->cleanup(); in copy()
378 return copy; in copy()