Lines Matching refs:icon
128 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites()
129 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites()
150 int32_t desiredWidth = update.state.icon.width(); in doUpdateSprites()
151 int32_t desiredHeight = update.state.icon.height(); in doUpdateSprites()
192 if (update.state.icon.draw(surface)) { in doUpdateSprites()
225 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites()
226 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites()
244 p.writeInt32(update.state.icon.style); in doUpdateSprites()
245 p.writeFloat(update.state.icon.hotSpotX); in doUpdateSprites()
246 p.writeFloat(update.state.icon.hotSpotY); in doUpdateSprites()
358 void SpriteController::SpriteImpl::setIcon(const SpriteIcon& icon) { in setIcon() argument
362 if (icon.isValid()) { in setIcon()
363 SkBitmap* bitmapCopy = &mLocked.state.icon.bitmap; in setIcon()
364 if (bitmapCopy->tryAllocPixels(icon.bitmap.info().makeColorType(kN32_SkColorType))) { in setIcon()
365 icon.bitmap.readPixels(bitmapCopy->info(), bitmapCopy->getPixels(), in setIcon()
369 if (!mLocked.state.icon.isValid() in setIcon()
370 || mLocked.state.icon.hotSpotX != icon.hotSpotX in setIcon()
371 || mLocked.state.icon.hotSpotY != icon.hotSpotY) { in setIcon()
372 mLocked.state.icon.hotSpotX = icon.hotSpotX; in setIcon()
373 mLocked.state.icon.hotSpotY = icon.hotSpotY; in setIcon()
379 if (mLocked.state.icon.style != icon.style) { in setIcon()
380 mLocked.state.icon.style = icon.style; in setIcon()
383 } else if (mLocked.state.icon.isValid()) { in setIcon()
384 mLocked.state.icon.bitmap.reset(); in setIcon()