Lines Matching refs:surfaceControl
90 void SpriteController::disposeSurfaceLocked(const sp<SurfaceControl>& surfaceControl) {
92 mLocked.disposedSurfaces.push(surfaceControl);
135 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) {
140 update.state.surfaceControl = obtainSurface(
142 if (update.state.surfaceControl != NULL) {
153 if (update.state.surfaceControl != NULL && update.state.wantSurfaceVisible()) {
163 status_t status = update.state.surfaceControl->setSize(desiredWidth, desiredHeight);
175 status = update.state.surfaceControl->hide();
199 if (update.state.surfaceControl != NULL && !update.state.surfaceDrawn
201 sp<Surface> surface = update.state.surfaceControl->getSurface();
250 if (update.state.surfaceControl != NULL && (becomingVisible || becomingHidden
262 status = update.state.surfaceControl->setAlpha(update.state.alpha);
271 status = update.state.surfaceControl->setPosition(
282 status = update.state.surfaceControl->setMatrix(
295 status = update.state.surfaceControl->setLayer(surfaceLayer);
302 status = update.state.surfaceControl->show();
310 status = update.state.surfaceControl->hide();
333 update.sprite->setSurfaceLocked(update.state.surfaceControl,
350 Vector<sp<SurfaceControl> > disposedSurfaces;
369 sp<SurfaceControl> SpriteController::obtainSurface(int32_t width, int32_t height) {
372 sp<SurfaceControl> surfaceControl = mSurfaceComposerClient->createSurface(
375 if (surfaceControl == NULL || !surfaceControl->isValid()) {
379 return surfaceControl;
394 if (mLocked.state.surfaceControl != NULL) {
395 mController->disposeSurfaceLocked(mLocked.state.surfaceControl);
396 mLocked.state.surfaceControl.clear();