Lines Matching refs:update

125         SpriteUpdate& update = updates.editItemAt(i);  in doUpdateSprites()  local
127 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
128 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites()
129 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites()
130 update.state.surfaceDrawn = false; in doUpdateSprites()
131 update.state.surfaceVisible = false; in doUpdateSprites()
132 update.state.surfaceControl = obtainSurface( in doUpdateSprites()
133 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites()
134 if (update.state.surfaceControl != NULL) { in doUpdateSprites()
135 update.surfaceChanged = surfaceChanged = true; in doUpdateSprites()
144 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() local
145 if (update.state.surfaceControl == nullptr) { in doUpdateSprites()
149 if (update.state.wantSurfaceVisible()) { in doUpdateSprites()
150 int32_t desiredWidth = update.state.icon.width(); in doUpdateSprites()
151 int32_t desiredHeight = update.state.icon.height(); in doUpdateSprites()
152 if (update.state.surfaceWidth < desiredWidth in doUpdateSprites()
153 || update.state.surfaceHeight < desiredHeight) { in doUpdateSprites()
156 t.setSize(update.state.surfaceControl, in doUpdateSprites()
158 update.state.surfaceWidth = desiredWidth; in doUpdateSprites()
159 update.state.surfaceHeight = desiredHeight; in doUpdateSprites()
160 update.state.surfaceDrawn = false; in doUpdateSprites()
161 update.surfaceChanged = surfaceChanged = true; in doUpdateSprites()
163 if (update.state.surfaceVisible) { in doUpdateSprites()
164 t.hide(update.state.surfaceControl); in doUpdateSprites()
165 update.state.surfaceVisible = false; in doUpdateSprites()
171 if (update.surfaceChanged || update.state.dirty & DIRTY_DISPLAY_ID) { in doUpdateSprites()
172 t.setLayerStack(update.state.surfaceControl, update.state.displayId); in doUpdateSprites()
182 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() local
184 if ((update.state.dirty & DIRTY_BITMAP) && update.state.surfaceDrawn) { in doUpdateSprites()
185 update.state.surfaceDrawn = false; in doUpdateSprites()
186 update.surfaceChanged = surfaceChanged = true; in doUpdateSprites()
189 if (update.state.surfaceControl != NULL && !update.state.surfaceDrawn in doUpdateSprites()
190 && update.state.wantSurfaceVisible()) { in doUpdateSprites()
191 sp<Surface> surface = update.state.surfaceControl->getSurface(); in doUpdateSprites()
192 if (update.state.icon.draw(surface)) { in doUpdateSprites()
193 update.state.surfaceDrawn = true; in doUpdateSprites()
194 update.surfaceChanged = surfaceChanged = true; in doUpdateSprites()
201 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() local
203 bool wantSurfaceVisibleAndDrawn = update.state.wantSurfaceVisible() in doUpdateSprites()
204 && update.state.surfaceDrawn; in doUpdateSprites()
205 bool becomingVisible = wantSurfaceVisibleAndDrawn && !update.state.surfaceVisible; in doUpdateSprites()
206 bool becomingHidden = !wantSurfaceVisibleAndDrawn && update.state.surfaceVisible; in doUpdateSprites()
207 if (update.state.surfaceControl != NULL && (becomingVisible || becomingHidden in doUpdateSprites()
208 || (wantSurfaceVisibleAndDrawn && (update.state.dirty & (DIRTY_ALPHA in doUpdateSprites()
215 && (becomingVisible || (update.state.dirty & DIRTY_ALPHA))) { in doUpdateSprites()
216 t.setAlpha(update.state.surfaceControl, in doUpdateSprites()
217 update.state.alpha); in doUpdateSprites()
221 && (becomingVisible || (update.state.dirty & (DIRTY_POSITION in doUpdateSprites()
224 update.state.surfaceControl, in doUpdateSprites()
225 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites()
226 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites()
231 || (update.state.dirty & DIRTY_TRANSFORMATION_MATRIX))) { in doUpdateSprites()
233 update.state.surfaceControl, in doUpdateSprites()
234 update.state.transformationMatrix.dsdx, in doUpdateSprites()
235 update.state.transformationMatrix.dtdx, in doUpdateSprites()
236 update.state.transformationMatrix.dsdy, in doUpdateSprites()
237 update.state.transformationMatrix.dtdy); in doUpdateSprites()
242 || (update.state.dirty & (DIRTY_HOTSPOT | DIRTY_ICON_STYLE)))) { 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()
252 update.state.surfaceControl, METADATA_MOUSE_CURSOR, p); in doUpdateSprites()
255 int32_t surfaceLayer = mOverlayLayer + update.state.layer; in doUpdateSprites()
257 && (becomingVisible || (update.state.dirty & DIRTY_LAYER))) { in doUpdateSprites()
258 t.setLayer(update.state.surfaceControl, surfaceLayer); in doUpdateSprites()
262 t.show(update.state.surfaceControl); in doUpdateSprites()
264 update.state.surfaceVisible = true; in doUpdateSprites()
265 update.surfaceChanged = surfaceChanged = true; in doUpdateSprites()
267 t.hide(update.state.surfaceControl); in doUpdateSprites()
269 update.state.surfaceVisible = false; in doUpdateSprites()
270 update.surfaceChanged = surfaceChanged = true; in doUpdateSprites()
287 const SpriteUpdate& update = updates.itemAt(i); in doUpdateSprites() local
289 if (update.surfaceChanged) { in doUpdateSprites()
290 update.sprite->setSurfaceLocked(update.state.surfaceControl, in doUpdateSprites()
291 update.state.surfaceWidth, update.state.surfaceHeight, in doUpdateSprites()
292 update.state.surfaceDrawn, update.state.surfaceVisible); in doUpdateSprites()