Lines Matching refs:icon

139             update.state.surfaceWidth = update.state.icon.bitmap.width();  in doUpdateSprites()
140 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
158 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
159 int32_t desiredHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
208 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); in doUpdateSprites()
210 if (outBuffer.width > update.state.icon.bitmap.width()) { in doUpdateSprites()
212 surfaceCanvas.drawRect(SkRect::MakeLTRB(update.state.icon.bitmap.width(), 0, in doUpdateSprites()
213 outBuffer.width, update.state.icon.bitmap.height()), paint); in doUpdateSprites()
215 if (outBuffer.height > update.state.icon.bitmap.height()) { in doUpdateSprites()
217 surfaceCanvas.drawRect(SkRect::MakeLTRB(0, update.state.icon.bitmap.height(), in doUpdateSprites()
257 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites()
258 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites()
375 void SpriteController::SpriteImpl::setIcon(const SpriteIcon& icon) { in setIcon() argument
379 if (icon.isValid()) { in setIcon()
380 SkBitmap* bitmapCopy = &mLocked.state.icon.bitmap; in setIcon()
381 if (bitmapCopy->tryAllocPixels(icon.bitmap.info().makeColorType(kN32_SkColorType))) { in setIcon()
382 icon.bitmap.readPixels(bitmapCopy->info(), bitmapCopy->getPixels(), in setIcon()
386 if (!mLocked.state.icon.isValid() in setIcon()
387 || mLocked.state.icon.hotSpotX != icon.hotSpotX in setIcon()
388 || mLocked.state.icon.hotSpotY != icon.hotSpotY) { in setIcon()
389 mLocked.state.icon.hotSpotX = icon.hotSpotX; in setIcon()
390 mLocked.state.icon.hotSpotY = icon.hotSpotY; in setIcon()
395 } else if (mLocked.state.icon.isValid()) { in setIcon()
396 mLocked.state.icon.bitmap.reset(); in setIcon()